1.插入數(shù)據(jù)
insert into 表名 (列名1,...,列名n) values (值1,...,值n)
insert into 表名 values (值1,...,值n) 因?yàn)闆]有指定插入的列,所以要插入所有列的值
2.更新數(shù)據(jù)
update 表名 set 列名1=值1,...,列名2=值2 [where 條件]
3.刪除數(shù)據(jù)
delete from 表名 [where 條件]
1.插入數(shù)據(jù)
insert into 表名 (列名1,...,列名n) values (值1,...,值n)
insert into 表名 values (值1,...,值n) 因?yàn)闆]有指定插入的列,所以要插入所有列的值
2.更新數(shù)據(jù)
update 表名 set 列名1=值1,...,列名2=值2 [where 條件]
3.刪除數(shù)據(jù)
delete from 表名 [where 條件]