select title from tableA where title like '%123%'
union all
select title from tableB where title like '%123%'
union all
select title from tableC where title like '%123%'
union all
select title from tableD where title like '%123%'
union all
select title from tableE where title like '%123%'
union all
select title from tableB where title like '%123%'
union all
select title from tableC where title like '%123%'
union all
select title from tableD where title like '%123%'
union all
select title from tableE where title like '%123%'
解决方案 »
- 对视图的查询,如何导出原来的SQL语句?期待SQL达人帮助!
- 循环从数据库中每次select回8条记录
- 200分求一個俺幾年來沒法解決的問題:請問如何對SQLServer2000進行針對存儲過程的文本搜索?
- 高分求教,顶者有分~
- 谢谢,帮我解释一下这句语句
- 如何记录对某张表的具体操作过程,因为我想知道这张表的数据是被别人蓄意修改的还是自己程序造成的.
- SQL2008R2 不支持用该后端版本设计数据库关系图或表
- 求一本SQL实战项目书籍
- (1)请教大家一个问题,用moden拨号进入一台没有入域的winxp,怎么用sql server 的查询分析器,访问这台机的sql server
- 請教distinct select 問題
- 寻求高手帮助---打印时候,数据意外丢失
- 浏览asp页面时,出现下面提示:“[SQL Server]用户 'webcourse' 登录失败。原因: 未与信任 SQL Server 连接相关联。 ”请问怎么解决
declare @ table (a int,b char(10),c datetime,d int)
insert @ values (1,'165','2009-01-05',4)
insert @ values (1,'2t','2007-01-05',30)
insert @ values (1,'35',getdate(),40)
insert @ values (1,'46','2004-01-05',50)
declare @1 table (e int,b char(10),f INT,g int)
insert @1 values (1,'176',5,4)
insert @1 values (1,'265',1,30)
insert @1 values (1,'364',89,40)
insert @1 values (1,'467',2004,50)select b from @ where b like '%6%'
union all
select b from @1 where b like '%6%' 你的表和这个有什么区别吗?为何不行呢?