更新数据库 找到为空的数据列为条件 在最后的时间插入一个数据 (数据筛选)
update prodition(表名) set 主条码='fa' where stoptime is null and start=(select max(starttime) from prodition)
找出最大时间stoptime时间为空的的行插入主条码
更新数据库 找到为空的数据列为条件 在最后的时间插入一个数据 (数据筛选)
update prodition(表名) set 主条码='fa' where stoptime is null and start=(select max(starttime) from prodition)
找出最大时间stoptime时间为空的的行插入主条码
转载于:https://www.cnblogs.com/QUSIR/p/3874272.html