1.数据的插入
简单的INSERT语句
INSERT INTO T_Person(FName,FAge,FRemark) VALUES(‘Tom’,18,’USA’)
简化的INSERT语句(只对部分列赋值)
INSERT INTO T_Person(FAge,FName) VALUES(22,’LXF’)
2.数据的更新
UPDATE T_Person SET FRemark = ‘SuperMan’; (整列都是SuperMan)
UPDATE T_Person SET FAge = 12 WHERE FNAME=’Tom’
3.数据的删除
DELETE FROM T_Debt;
DELETE FROM T_Person WHERE FAge > 20 or FRemark = ‘Mars’
时间: 2024-11-13 17:43:37