摘要:
关键字 1...mysql包含之in SELECT count(1) as count FROM 表名 a,表名 b WHERE a.主键 = b.外键 and a.字段 in('1','2,'3') and a.字段<> 1; 2.and与or的结合使用 update 表名SET 字段1= 99, 阅读全文
摘要:
1.示例1 查询1: SELECT CASE main_xm_sam31 WHEN '02' THEN 2 ELSE 1 END AS SPDJ FROM SR_MAIN_BG A WHERE A.PK_SR_MAIN = '1162275825622593536' AND (SYS_SPDJ = 阅读全文
摘要:
1.单表的:update user set name = (select name from user where id in (select id from user where name='小苏')); update goods set name = REPLACE(name ,' ','') 阅读全文