Hi,
Is there is any way to take out last comma from the output.
create table EMP
(
EMP_NO NUMBER(10),
ENAME VARCHAR2(10),
SAL NUMBER(10),
)
See here SAL column at the end their is comma, is it possible to take out that comma. appreicate your help.
I don't know much, but i tried with the following. It is giving wrong.
cat aa|nawk -F"\t" '{prev="";if ($1 == prev) print "CREATE TABLE "$1 ; else print $2" "$3};prev=$1'
Hi,
I need help , I have a file which lot of other entities like below, i want to create for each entity a sepearate create table script like below, Any help is much appreciated.
EMP EMP_NO NUMBER(10),
EMP ENAME VARCHAR2(10),
EMP SAL NUMBER(10)
DEPT DEPTNO VARCHAR2(10)
DEPT DNAME...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.