1. 程式人生 > >SQL語句 增刪改查

SQL語句 增刪改查

ids 表名 set int delet 漢族 nat pda delete

增:

insert into 表名 values(‘阿紫‘,‘0‘,‘回族‘

insert into 表名 (sex,[name],nation) values (‘1‘,‘阿碧‘,‘漢族‘)

刪:

delete from 表明 where nation = ‘阿紫‘

改:

update 表名 set nation = ‘漢族‘,sex = 1 where ids = 6

查:

select * from 表名 where nation=‘漢族‘

or(或)

and(並)

SQL語句 增刪改查