62,635
社区成员




declare @id varchar2(20);
set @id='1234'
select * from where id=@id
declare
id varchar2(20) := '1234 ';
begin
select * from table_name where id=id;
exception
when others then
DBMS_OUTPUT.PUT_LINE('错误');
end ;
declare
id varchar2(20) := '1234';
temp table—name%ROWTYPE;
begin
select * into temp from table—name where id = id;
end;
declare
sid varchar2(20);
begin
sid:='1234';
select * from tableName where id =sid;
end
declare
@id varchar2(20):='1234';
begin
select * from where id=@id;
exception
when others then
DBMS_OUTPUT.PUT_LINE('错误');
end;