您的位置:首页 > 数据库 > Oracle

[VB.NET]oracle中date字段如何查询

2008-12-29 11:00 423 查看



<script type="text/javascript"><!--
google_ad_client = "pub-8333940862668978";
/* 728x90, 创建于 08-11-30 */
google_ad_slot = "4485230109";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

oracle中date字段如何查询
oralce数据库中的一个表,其中一个字段类型是date类型,在vb。net中如何用sql语句查询某一些日期的数据
例如sqlselectcommand.commandtext= select * from tablename where dateitem > ,后面应该怎么加?
__________________________________________________________________________
select * from tablename where dateitem > 2007-04-10
__________________________________________________________________________
或者这样:
sqlselectcommand.commandtext= select * from tablename where dateitem > ‘ +变量+“’”
__________________________________________________________________________
oracle数据库 那时间数据 不应该那样写 之前要进行类型转化
__________________________________________________________________________
看下 感觉楼上两位的写法应该不行 楼主试了 好不用不?》
__________________________________________________________________________
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息