Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

line breaks in sqlplus [duplicate]

we develop the sql scripts in oracle sql developer and in production dba execute the same in oracle sql plus.

The problem is if we insert a line break

  Create table test(

  text number(10)

The line break is causing the scripts to fail, do you know how to fix this in sqlplus?

Also we generate the scripts using liquibase, so any ways to address this?

like image 514
Hari Avatar asked Sep 17 '25 18:09

Hari


1 Answers

Try adding:

set sqlblanklines on

to the start of your sql script.

like image 55
OldProgrammer Avatar answered Sep 20 '25 10:09

OldProgrammer