使用ADO在sql server建表的方法
作者:佚名
通過(guò)ADO在sql server建表,可否實(shí)現(xiàn)呢?答案是肯定的,下面就將為您介紹使用ADO在sql server建表的方法,希望對(duì)您學(xué)習(xí)ADO和sql server能有所幫助。
通過(guò)ADO可以訪問(wèn)sql server,并且實(shí)現(xiàn)sql server建表,下面為您介紹使用ADO在sql server建表的方法,供您參考,希望對(duì)您學(xué)習(xí)sql server建表有所幫助。
- CREATE TABLE
- [
- database_name.[owner].
- | owner.
- ] table_name
- (
- {
- | column_name AS computed_column_expression
- |
- } [,...n]
- )
- [ON {filegroup | DEFAULT} ]
- [TEXTIMAGE_ON {filegroup | DEFAULT} ]
- ::= { column_name data_type }
- [ [ DEFAULT constant_expression ]
- | [ IDENTITY [(seed, increment ) [NOT FOR REPLICATION] ] ]
- ]
- [ ROWGUIDCOL ]
- [ ] [ ...n]
- ::= [CONSTRAINT constraint_name]
- {
- [ NULL | NOT NULL ]
- | [ { PRIMARY KEY | UNIQUE }
- [CLUSTERED | NONCLUSTERED]
- [WITH FILLFACTOR = fillfactor]
- [ON {filegroup | DEFAULT} ]]
- ]
- | [ [FOREIGN KEY]
- REFERENCES ref_table [(ref_column) ]
- [NOT FOR REPLICATION]
- ]
- | CHECK [NOT FOR REPLICATION]
- (logical_expression)
- }
- ::= [CONSTRAINT constraint_name]
- {
- [ { PRIMARY KEY | UNIQUE }
- [ CLUSTERED | NONCLUSTERED]
- { ( column[,...n] ) }
- [ WITH FILLFACTOR = fillfactor]
- [ON {filegroup | DEFAULT} ]
- ]
- | FOREIGN KEY
- [(column[,...n])]
- REFERENCES ref_table [(ref_column[,...n])]
- [NOT FOR REPLICATION]
- | CHECK [NOT FOR REPLICATION]
- (search_conditions)
- }
【編輯推薦】
責(zé)任編輯:段燃
來(lái)源:
互聯(lián)網(wǎng)