2
我只是想看到一个变量的值选择的变量值。我不明白为什么这会如此困难。
我的SQL语句
--set serveroutput on format wrapped; Tried this too
SET SERVEROUTPUT ON;
--DBMS_OUTPUT.ENABLE(32000); Tried with, and without this
vend_num xx.VENDOR_CWT.VEND_NO%TYPE;
SELECT vend_no
INTO vend_num
FROM xx.VENDOR_NAME
WHERE VENDOR_NAME1 = 'xxxx';
dbms_output.put_line(vend_num);
我歌厅错误
Error starting at line 13 in command:
dbms_output.put_line(vend_num)
Error report:
Unknown Command
我已经试过
我已经试过了如下回答:
Print text in Oracle SQL Developer SQL Worksheet window
Printing the value of a variable in SQL Developer
我所做的事,这个答案与GUI建议:https://stackoverflow.com/a/7889380/496680
我试过exec dbms_output[...]
一些帖子建议。
问题
如何只打印vend_num的价值;
谢谢!我在这方面花了太长时间:/ – 2013-05-10 13:36:48
虽然我可以感受到渗透的挫折感。 – 2013-05-10 13:37:46