substring(? from 1 for length(phonenum))是什么意思啊?

yangmiao212 2007-07-03 02:24:07
StringBuffer sql = new StringBuffer();
sql.append("select * from ");
sql.append(TableDef.IIP_NUMTABMOB);
sql.append(" where substring(? from 1 for length(phonenum)) = phonenum");

dbf = new SqlDB();
dbf.setSql(sql.toString());
dbf.setString(1, phonenum);
sqlrs = dbf.executeQuery();
请问substring(? from 1 for length(phonenum)这个SQL语句是什么意思,语法是什么?
...全文
304 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yangmiao212 2007-07-04
  • 打赏
  • 举报
回复
有谁告诉我啊
shao99 2007-07-04
  • 打赏
  • 举报
回复
有这个写法?

语句中的?应该是dbf.setString(1, phonenum);传入的参数吧。

1,195

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 Informix
社区管理员
  • Informix社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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