oracle8i中的long类型怎么才能实现用like进行模糊查询

henry_cn 2003-08-22 03:33:04
oracle8i中的long类型怎么才能实现用like进行模糊查询
...全文
631 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
henry_cn 2003-08-26
  • 打赏
  • 举报
回复
up
tcmis 2003-08-23
  • 打赏
  • 举报
回复
把表的数据先备份一下再该撒
henry_cn 2003-08-22
  • 打赏
  • 举报
回复
我的表内有数据,还能不能改字段类型,改为什么类型的??
beckhambobo 2003-08-22
  • 打赏
  • 举报
回复
LONG columns cannot appear in certain parts of SQL statements:

WHERE clauses, GROUP BY clauses, ORDER BY clauses, or CONNECT BY clauses or with the DISTINCT operator in SELECT statements

The UNIQUE operator of a SELECT statement

The column list of a CREATE CLUSTER statement

The CLUSTER clause of a CREATE MATERIALIZED VIEW statement

SQL functions (such as SUBSTR or INSTR)

Expressions or conditions

SELECT lists of queries containing GROUP BY clauses

SELECT lists of subqueries or queries combined by the UNION, INTERSECT, or MINUS set operators

SELECT lists of CREATE TABLE ... AS SELECT statements

SELECT lists in subqueries in INSERT statements
zjhclf 2003-08-22
  • 打赏
  • 举报
回复
建议将字段类型修改掉!
henry_cn 2003-08-22
  • 打赏
  • 举报
回复
我头一次用Oracle,把存入文章内容的类型定义成Long,现在要查询,
select * from memo like '%非典%'
就出错,说类型不对。
zjhclf 2003-08-22
  • 打赏
  • 举报
回复
??long为什么要模糊查询

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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