摘要:
1,更新表时将该表查询出的数据作为更新条件 在更新某张表时,如果更新的条件值是从该表中查询获得的时候,mysql会报错,如下 update smdm_item_0809 set enabled_flag = 1 where item_id in (select item_id from smdm_i 阅读全文
摘要:
将两个日期类型直接相减,如果两个时间是跨时、分的情况下,得到的时间差不对。 问题实例 SQL: SELECT sfec.last_update_date AS `Es Last Update Date`, si.last_update_date AS `Item Last Update Date`, 阅读全文