摘要:
1. 给表起别名: select * from student_info a where a.sno = '001'; 或者 select * from student_info as a where a.sno = '002'; 2.给字段起别名: select name,school sc,ad 阅读全文
摘要:
模糊查询: SELECT 字段 FROM 表 WHERE 某字段 Like 条件; ①% :表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(%%)表示。 如下查询 将会把u_name为“张三”,“张猫三”、“三脚猫”,“唐三藏”等等有“三”的记录全找出来。 阅读全文