急求,函数用法

imonsoft2011 2012-06-29 09:14:04
在delphi中
if sname='aa' then
wherestr:=Wherestr+'And REGEXP_SUBSTR(BZB,'[[:digit:]]+')||'+quotedstr('-')+'||REGEXP_SUBSTR('BZB','[[:digit:]]+',1,2)>='+quotedstr(copy(strfieldvalue,1,7))+' '

在编译的时候总是报Expression expected but ':' found 错误,
急求怎么解决????
...全文
140 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
cdchq 2012-07-21
  • 打赏
  • 举报
回复
单引号问题
Frank.WU 2012-07-20
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 的回复:]

单引号没问题的
[/Quote]

单引号明明不匹配,还说没问题?
csdn小虫 2012-07-19
  • 打赏
  • 举报
回复
REGEXP_SUBSTR(BZB,'[[:digit:]]+')||'

这里有问题
ynquan 2012-07-04
  • 打赏
  • 举报
回复
'[[:digit:]]+'
改成
''[[:digit:]]+''
五哥 2012-07-04
  • 打赏
  • 举报
回复
你把这个 wherestr用showmessage出来看看是什么不就知道问题出现在哪里啦 ?
酣酣 2012-06-29
  • 打赏
  • 举报
回复
字符串中的单引号用两个单引号代替!
s11ss 2012-06-29
  • 打赏
  • 举报
回复
'[[:digit:]]+'
改成
''[[:digit:]]+''
试试。
酣酣 2012-06-29
  • 打赏
  • 举报
回复
会不会是这样
wherestr:=Wherestr+'And REGEXP_SUBSTR(BZB,''[[:digit:]]+'')||'
imonsoft2011 2012-06-29
  • 打赏
  • 举报
回复
单引号没问题的
imonsoft2011 2012-06-29
  • 打赏
  • 举报
回复
嗯,REGEXP_SUBSTR(BZB,'[[:digit:]]+')是oracle中的函数,但不知道为什么错误
beiguofengguang 2012-06-29
  • 打赏
  • 举报
回复
问题处在:digit:这里吧
s11ss 2012-06-29
  • 打赏
  • 举报
回复
单引号要配对

16,748

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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