oracle 查询含有指定字符串的字段

[复制链接]
查看11 | 回复2 | 2008-7-17 16:38:00 | 显示全部楼层 |阅读模式
各位大师,我想从user_tables 中查询出含有 "arm_log_" 的记录,就是说表中有 “arm_log_20080202”\"20080303" 这样的记录,我想把这些记录都查出来,该怎么写sql 语句呢?
String sql="select name from user_tables where ";
where 后面该怎么写呀?

回复

使用道具 举报

千问 | 2008-7-17 16:38:00 | 显示全部楼层
where name like 'arm_log_%'
回复

使用道具 举报

千问 | 2008-7-17 16:38:00 | 显示全部楼层
select name from user_tables where COL like 'arm_log_%'
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行