可以就用=,>,<把你的语句贴出来!
解决方案 »
- 怎样把多条记录的内容写在一条记录中?
- 关于 begin tran 和 commit tran 的疑问
- 存储过程基础问题
- 收集:先进先出,先进后出,加权平均,手工指定 较好的SQL示例
- 如何把XML格式的文件导入到SQL Server数据库中....很急!分数不够再补
- 急,高手进,关于月份横向统计的sql
- 关于UPDATE的高级使用求解
- 存储问题
- 向oracle中的 prod_id cd_check_data.row_id%type;在sqlserver中怎么写啊
- 请问各位大虾,用DAO如何连接到SQLServer,拜托急急急急急急!!!!!!!
- 什么情况才要建立非聚集索引。
- 微软专家请看(关于sql server 超时的问题)
这一条记录,不知道为什么?
select top 1 * from Merchandise where TradeCode = 14 and Price >= 100 AND Price <= 1000 and Code > '3049000000' order by Code desc group by Code
'3049000000 '>'3049000000' --前面多一个空格select top 1 * from Merchandise where TradeCode = 14 and Price >= 100 AND Price <= 1000 and RTRIM(Code) > '3049000000'
试试
我做了一个试验,没有出现你说所的问题: use pubs
select * from sales
where ord_num > 'P2121' 你再试试。