$sql="select * from article where id=1" 和 $sql="select * from article where id=1",都可以得到正确的结果,但有时分开写或许能更明了一点,特别是当sql语句比较长时
可以用in来实现 $sql="select * from article where id in(1,3,5)"
$sql="select concat(id,"-",con) as res from article where id=1"
exam:$sql="select city ,count(*) from customer group by city";
$sql="select city,count(*),min(birth_day) from customer group by city having count(*)>10";
$sql="select distinct city from customer order by id desc";
$sql="select * from article limit 100,-1";
$sql="select user_name from user u,member m where u.id=m.id and m.reg_date>=2006-12-28 order by u.id desc"
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有