我想在写查询语句的时候,将条件赋给变量,不知道怎么写,
SQL的话,比如:
declare @temp varchar(20)
set @temp='SRT13000007'
select * from einvgtfhd where efhno=@temp
但我不知道orcale怎么写
SQL的话,比如:
declare @temp varchar(20)
set @temp='SRT13000007'
select * from einvgtfhd where efhno=@temp
但我不知道orcale怎么写
解决方案 »
- 急!急!急! 64位系统上64位的SQLServer2008 怎么链接到32位的Oracle11g
- 查询丢失数据
- 如何将excel文件导入到ORACLE数据库(在JSP环境下实现)
- 这种情况sql语句能否实现?
- 急!如何从一个shell文件中传递一个参数到sql文件中,不能用存储过程
- 求SQL语句一条 急急急 在线等 立马送分
- 调用存储过程报错:PLS-00306和ORA-06550
- 在ms sql server中的select语句在oracle中如何表示?
- 需要Oracle 8i 安装说明及注意事项书一份,请高手回复~!!!
- 求助:sql查询 ora 03113
- Oracle 查询问题
- Oracle查询语句
begin
temp:='SRT13000007';
//--select * from einvgtfhd where efhno=temp;
ORACLE不支持这种查询,这样的查询必需有游标。
end;
hr@ORCL> select * from employees where employee_id=&v_tt;