我使用oracle开发人员工具为viusal studio开发我的pl / sql程序,但是,我遇到了这个简单代码的问题 这是代码
BEGIN
DBMS_OUTPUT.PUT_LINE('helloWorld');
END;
调试信息如下:
**ERROR
ORA-06550: line 1, column 6:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
<an alternatively-quoted SQL string>
The symbol "" was ignored.
ORA-06550: line 2, column 36:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-id**
答案 0 :(得分:0)
尝试:
DECLARE
v_var VARCHAR2(15) := 'helloworld';
BEGIN
DBMS_OUTPUT.PUT_LINE(v_var);
END;