begin plsql
Declare
v_model_name varchar(40);
begin
select bs.parent into v_model_name
from sfis1.c_bom_structure_t bs
where bs.parent ='SCVCD-SASA'
and bs.bubble_number = 300
and rownum =1;
if v_model_name is not null then
Dbms_Output.put_line(v_model_name);
else
Dbms_Output.put_line('No Model Found now');
end if;
end;[@more@]Declare
v_model_name varchar(40);
begin
select bs.parent into v_model_name
from sfis1.c_bom_structure_t bs
where bs.parent ='SCVCD-SASA'
and bs.bubble_number = 300
and rownum =1;
if v_model_name is not null then
Dbms_Output.put_line(v_model_name);
else
Dbms_Output.put_line('No Model Found now');
end if;
end;
v_model_name varchar(40);
begin
select bs.parent into v_model_name
from sfis1.c_bom_structure_t bs
where bs.parent ='SCVCD-SASA'
and bs.bubble_number = 300
and rownum =1;
if v_model_name is not null then
Dbms_Output.put_line(v_model_name);
else
Dbms_Output.put_line('No Model Found now');
end if;
end;[@more@]Declare
v_model_name varchar(40);
begin
select bs.parent into v_model_name
from sfis1.c_bom_structure_t bs
where bs.parent ='SCVCD-SASA'
and bs.bubble_number = 300
and rownum =1;
if v_model_name is not null then
Dbms_Output.put_line(v_model_name);
else
Dbms_Output.put_line('No Model Found now');
end if;
end;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/93029/viewspace-1027999/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Begin
- oracle plsqlOracleSQL
- PLSQL Developer 14SQLDeveloper
- plsql use skillsSQL
- plsql配置使用SQL
- for (auto it = _list.begin(); it != _list.end(); )關於在for迴圈中使用std::vector中的begin和end
- PLSQL程式語言SQL
- PLSQL Developer 行號SQLDeveloper
- plsql中文亂碼SQL
- windows安裝plsqlWindowsSQL
- PLSQL Developer配置使用SQLDeveloper
- MySQL:begin後事務為什麼不提交MySql
- 用begin backup的方式遷移資料庫資料庫
- 0710_plsql 函式SQL函式
- [20180511]PLSQL與fetchsize.txtSQL
- PLSQL Developer 12 註冊碼SQLDeveloper
- plsql 除錯 pipelined 函式SQL除錯函式
- plsql developer 視窗的使用SQLDeveloper
- 6. PLSQL 編寫規範SQL
- 配置PLSQL Developer詳細步驟SQLDeveloper
- PLSQL只匯出表結構SQL
- plsql developer 15的安裝配置SQLDeveloper
- plsql developer工具生成sql monitor reportSQLDeveloper
- Oracle vs PostgreSQL Develop(29) - COMMIT in PLSQLOracleSQLdevMIT
- 儲存過程定義多個遊標多個begin儲存過程
- [20220708]PLSQL – choosing the BEST data type.txtSQL
- [20210621]plsql_code_type=native.txtSQL
- PLSQL一些常用的知識點SQL
- PLSQL安裝與使用問題彙總SQL
- plsql以及instantclient下載安裝配置使用SQLclient
- 使用plsql 匯出欄位為json 格式SQLJSON
- [20211116]plsql_code_type=native補充.txtSQL
- 關於plsql,crt登入比較慢SQL
- 解決plsql中中文亂碼問題SQL
- PLSQL Developer 複製查詢結果 卡頓SQLDeveloper
- plsql中資料生成工具data generator的使用SQL
- [20211027]引數plscope_settings分析PLSQL.txtSQL
- [20221130]PLSQL的變數作用範圍(linux).txtSQL變數Linux
- plsql developmer 匯出資料和生成資料SQLdev