注:time字段类型 在sqlserver2000中为datatime,在oracle10g中为data,
请问在sqlserver2000中这两句是等价的么?select * from table where time>'2006-09-12 00:00:00'select * from table where time>'2006-09-12'如果换成oralce10g 我想写等价这句select * from table where time>'2006-09-12'的sql
是这样写么?select * from oracletable where time<to_date('2006-09-12','yyyy-mm-dd')
请问在sqlserver2000中这两句是等价的么?select * from table where time>'2006-09-12 00:00:00'select * from table where time>'2006-09-12'如果换成oralce10g 我想写等价这句select * from table where time>'2006-09-12'的sql
是这样写么?select * from oracletable where time<to_date('2006-09-12','yyyy-mm-dd')
解决方案 »
- oralcle 登录时报错:ora-01033 oracle initialization or shutdown in progress
- 请教 oracle 查看操作日志方法
- 高分求:创建Oracle数据库,并实现JSP与之连接
- 这个代码哪错了?
- 使用toad别名的问题
- 怎么才能登陆到oracle management server。
- 怎样向过程传递SQL语句?
- SQl迁移到Oracle中碰到问题了!请各位指教!
- 请教有 ORACLE 数据库的启动问题?
- Error while trying to retrieve text for error ORA-12154
- 请教个SQL语句
- 如何通过Excel或SQL找符合规律的手机号码
select * from table where time>'2006-09-12'里的字符串会隐式转换为'2006-09-12 00:00:00'
oralce10g 不懂,你该去oralce板块问问。
select * from table where time>'2006-09-12 00:00:00'select * from table where time>'2006-09-12'
oracle to_date()转化日期函数。
1、MSSQL
select * from table where time>'2006-09-12 00:00:00'
select * from table where time>'2006-09-12'等价的。理由同楼上。
楼主方法没有问题。