SQL高手请进,很需要你的帮忙,谢谢啦 select * from tb where charindex('.'+producttype+'.','.1002.')>0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 with orderdetail(producttype) as(select 1001 union all select 1000 union all select 1001.1002 union all select 1003.1001) select * from orderdetail where charindex('.1001.','.'+cast(producttype as varchar(50))+'.')>0 收缩数据库 怎么将查询结果直接更新到表格? 问一个数据转化的问题 group by 和 CASE 联用时如何让 ISNULL时指定值为0,急等!!有效立给分 请大伙看看这sql有哪儿可以改进的 请各位帮小弟一个忙!!谢谢!! 再次提问?高手帮忙 请高手指点: 做一个项目的时候,数据库设计的有哪些步骤和设计原则。 如何查出一个表的关键字 如何将在query analysis 中将用sql select 语句执行的结果保存到文件中 求赐予一SQL排序语句,超难 如何实现时间段循环插入表
(select 1001 union all
select 1000 union all
select 1001.1002 union all
select 1003.1001)
select * from orderdetail where charindex('.1001.','.'+cast(producttype as varchar(50))+'.')>0