- 首先我修改工具编码为仿宋,如图
- 在工具新增一个sql 编辑窗口,编写匿名块
--/ begin DBMS_OUTPUT.PUT_LINE('Sample output'); end; /
- 执行匿名块,然后就报错了,具体错误如下,说是出现“”什么的,但是我并没有看到
[Code: 6550, SQL State: 65000] ORA-06550: 第 1 行, 第 6 列: PLS-00103: 出现符号 ""在需要下列之一时: 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 pipe 符号 "" 被忽略。 ORA-06550: 第 2 行, 第 40 列: PLS-00103: 出现符号 ""在需要下列之一时: 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-identifier> <a bind variable> <<
- 于是我将匿名块复制到 notepad++,什么都不做,在复制到 dbvisualizer sql编辑器上
- 在运行匿名块,我去,奇迹般运行成功,这是BUG啊,工具的BUG,只要是工具里面begin后面敲了回车就无法执行,很烦
- 还有一种办法就是,在工具里面写完匿名块后,按ctrl+shift+f 格式 就OK了
--/ BEGIN DBMS_OUTPUT.PUT_LINE('Sample output'); END; /
解决 dbvisualizer 修改字体编码为中文时,匿名块执行报错问题
最新推荐文章于 2022-05-22 18:37:58 发布