select * from a where partindex("%abc%",b)>0
解决方案 »
- 同一数据库两个不同的表单字段相同,怎样相互复制数据
- 在sql2000中存储过程,传递字符串变量作为参数,传递给过程中的in 的问题
- group by 问题.请大家帮忙.
- 哪位高人有Log Explorer
- 现有sqlserver6.5下的数据库备份一个,如何导入到2000中?
- 我的数据库日志文件为什么这么大?请各位指点
- SQL SERVER 2000和 2005导入数据库文件时出错
- SQL语句问题:如何列出最近7天要生日的记录,并按相隔的天数排序?
- 一个关于sqlserver数据库同步的问题
- sql的表设计与追踪查询的问题
- 我想插入varchar类型字段如下的值'601090','6010901','6010902'(注意这是一个完整的字符串)请问SQL应该如何写?
- 什么叫事务处理?
select * from a where b like '%abc%'
select colname from tablename where colname like '%%'
现在我想它掉转,用1abcdefg来查找字段b里的abc内容啊!这样就不会返回eof了,为什么sql语言不可以这样呢?唉........ select * from a where '1abcdefg' like %b%
insert @a
select 'abc'
union all select 'rtr'
union all select 'ert'select * from @a
where '1abcdefg' like '%'+b+'%'
declare @a table(b varchar(3))
insert @a
select 'abc'
union all select 'rtr'
union all select 'ert'
--查找
select * from @a
where '1abcdefg' like '%'+b+'%'