SQL語法結構

2022-08-02 03:03:11 字數 708 閱讀 6814

目錄

1.增加字段

2.新建約束

二.刪1.刪除字段

2.刪除約束

三.改1.修改字段

1.增加字段:

alter table [表名] add [欄位名] nvarchar (50) null

語法:

alter table test1 add tt1 nvarchar(10) null

2.新建約束:

alter table [表名] add constraint 約束名 check ([約束字段] <= 『2000-1-1′)

1.刪除字段:

alter table [表名] drop column [欄位名]

語法:

alter table test1 drop column tt1

2.刪除約束:

alter table [表名] drop constraint [約束名]

1.修改字段:

alter table [表名] alter column [欄位名] nvarchar (50) null

語法:

alter table test1 alter column tt1 nvarchar(1) null

sql裡的 DML語法結構

create table語法 在oracle中 default value 必須放在最前邊,其它約束順序不限 create table table name column name column type default value not null primary key unqiue alter...

css語法結構

轉 css屬性和選擇符 css的語法結構僅僅有三部分組成 選擇符 selector 屬性 property 和值 value 使用方法 selector 選擇符 selector 指這組樣式編碼所要針對的物件,可以是乙個xhtml標籤,如body,h1 也可以是定義了特定的id或class的標籤,如...

CSS語法結構

css中文譯為層疊樣式表。是用於控制網頁樣式並允許,將樣式資訊與網頁內容分離的一種標記性語言。通俗的講就是告訴瀏覽器,這段樣式將應用到哪個物件.基本語法規範 引數說明 屬性和屬性值之間用冒號 隔開,定義多個屬性時,屬性之間用英文輸入法下的分號 隔開,color red 和 font size 25p...