How Connect to a Database in Shell Programming?
Answers were Sorted based on User's Feedback
Answer / ashu
you have a "sqlplus" command to connect to database.
command is as follows:
sqlplus <db_username>/<db_password> @test.sql
| Is This Answer Correct ? | 19 Yes | 6 No |
Answer / sibin kc
You can simply use as follows.
mysql -h <hostname> -u <user name> -p<password> -e "use
psa;select * from domains where domain_name = 'hai.com';"
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / seshadri sethi
(1)1st give "sqlplus"
(2)then it will show "sqlplus" prompt
(3)give "db username"
(4)give "db password"
| Is This Answer Correct ? | 8 Yes | 6 No |
Answer / supraja
mysql -uusername -ppassword -hipaddress database -e "statement"
eg:mysql -uroot -psuppu -h192.168.0.1 supraja -e "select
count(*) from table"
| Is This Answer Correct ? | 2 Yes | 0 No |
Please give me example of " at command , contrab command " how to use
write a program to display all the files from the current directory which are created in particular month
write a shell script to find the largest number from 3 given numbers.
What is scripting autism?
How important is shell scripting?
Explain about sourcing commands?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
How to check if a directory exists?
what are bootlevel in linux?which level is booting by default.
What is the need of including script interpreter in your shell script?
What is k shell?
How do you read arguments in a shell program - $1, $2 ..?