通过odbc访问dbf,想做达到与sql中lselect * from table where len(aa)=5的效果

lovdelphi 2003-08-02 05:10:52
在sql库 中我可以这select * from table where len(aa)=5 ;
但通过odbc访问dbf 就不能这样了?
我上这样写的:
select * from tabel.dbf where len(aa) =5 //但aa 是numic类型,
我想用cast转换,但系统说:function name is missing
我应用什方法做到
select * from tabel.dbf where len(aa) =5
...全文
55 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
流星尔 2003-08-04
  • 打赏
  • 举报
回复
难道你的这个SQL句在SQL中可以执行吗,table2中没有a这个字段,又如何where table2.a=table1.a呢
noproblem12 2003-08-04
  • 打赏
  • 举报
回复
select * from tabel.dbf where aa<=10000 and a>100000
这样不可以么?
newfang 2003-08-04
  • 打赏
  • 举报
回复
楼上你怎么知道table2中没有字段a的???
lovdelphi 2003-08-02
  • 打赏
  • 举报
回复
好的已解决,分一定给。
再问一个(另给分)。
在SQL中 我用 update table1 set table1.a=b from (select b from table2) as table2 where table2.a=table1.a
在dbf中也是不行,要怎样变通呢?
newfang 2003-08-02
  • 打赏
  • 举报
回复
vfp不认cast转换函数的!!

select * from tabel.dbf where len(allt(str(aa)))=5

2,749

社区成员

发帖
与我相关
我的任务
社区描述
VFP,是Microsoft公司推出的数据库开发软件,用它来开发数据库,既简单又方便。
社区管理员
  • VFP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧