
增加数据
依次填入所有数据:
insert into [TableName] values (IntValue, 'VarcharValue', 'CharValue', ...);
按字段名增加数据:
insert into [TableName]([FieldName1],[...]) values ([Value1], ...);
eg:


删除数据
删除数据
delete from [TableName] where [...];
删除所有数据
delete from [TableName];
eg:


查找数据
select * from [TableName]
[where 子句]
[order by 子句]
[limit 子句]
eg:

修改数据
update [TableName]
[set 子句]
[where 子句]

网友评论