select firstno from 表 where secondno='02'
解决方案 »
- 记录排名的小问题,在线等
- 如何从一张表中随机选择N条记录,然后将某一字段值保存在数组中?
- SQL2005 简单代码求助
- 特急:为何这个过程不执行呢?(100分送上,分不够再加)
- 请高手帮忙?
- 求助关于SQL公式字段问题
- SQLSERVER2005表中的汉字全是乱码,汉字是从MYSQL中导入的
- 怎样实现数据库间的同步?5555555,急急急急急
- 欢迎高级DBA加入讨论!!!!
- 自定义Person类,内部封装name属性,提供set/get方法,然后创建List集合放入三个Person对象
- 急:求用sql 修改sql server 的字段数据类型、字段长度的代码。
- 求援:关于几个SQL SERVER入门的问题:?谢了.
02-1是bno~~~~~
union all
select firstno from 表 where secondno ='02'
union all
select firstno aaa from 表 where secondno ='02') tem group by aaa
select distinct bno from 表 where firstno ='02'
union all
select distinct firstno from 表 where secondno ='02'
select bno from tablename where firstno = '02'
union all
select firstno from tablename where secondno = '02'