how do you write sql queries using shell script
for eg:- we have databae table like EMPNO,ENAME,SAL,DEPTNO
columns in EMP table how you display EMPNO,SAL FIELDS from emp
in SHELL SCRIPT please explain with an example
Answer Posted / nitesh bhope
sqlplus username/userpassword@oracle<<eof
>select * from emp;
>select empno,ename,sal,deptno;
........what ever commands u wanna execute of sql u can
write here
>hit ctrl+d
these are called as here documents
| Is This Answer Correct ? | 11 Yes | 10 No |
Post New Answer View All Answers
What language is bash?
What is shell chemistry?
write a shell script to check the failed jobs?
What is subshell?
What is a file basename?
What is the default ubuntu terminal?
What are the disadvantages of shell scripting?
What is the fastest scripting language?
What is inside a seashell?
How to get the 3rd element/column from each line from a file?
What does it mean to debug a script?
What is a beat in a script?
What are the advantages of shell script?
What is awk script?
Is it possible to substitute "ls" command in the place of "echo" command?