select * from c where A.1=B.1
解决方案 »
- 设计数据表问题。
- 添加一个数据库的受限用户
- 为什么会显示 Could not find the main class,program will exit.???
- 在SqlServer2000的存储过程中"Alter table_name Modify column_name date_type(..)" 语句怎么写??
- 在mssql怎样实现联级删除的?
- 急求删除数据库重复数据,用SQL语句
- 求SQL的写法:2.058^ min(1,365/3015)
- 提问!求最小公倍数
- 求教一个动态确定列个数的交叉表查询问题
- 多表查询问题!!!
- 关于表的连接问题
- 急!SQL SERVER2000中认证连接问题
CC1 C2
------
A.1 B.1
TRY:
select aa.* from c as aa inner join c bb on aa.C1=bb.C1 and (bb.C2='B.1' or bb.C2='B.2')
但这样会把有 bb.c2='B.1' 或 bb.c2='B.2'两者之一的记录也选中了。