UPDATE date set sname='李四' where id=1;
这语句的意思:修改 表名 把sname 改为 李四 ,如何找到他 通过where 当id=1的时候,也可以通过birth来寻找。
格式如下:
update 表名 set 新的字段名 where 搜寻条件;
UPDATE date set sname='李四' where id=1;
这语句的意思:修改 表名 把sname 改为 李四 ,如何找到他 通过where 当id=1的时候,也可以通过birth来寻找。
格式如下:
update 表名 set 新的字段名 where 搜寻条件;