The following code starts the SQL from the shell script directly, without additional SQL file
#!/bin/sh –/. &> /dev/null; exec mysql "$@" select ‘Hello, world!’ as test ;
The detailed explanation of the trick is here
|
|||||
|
The following code starts the SQL from the shell script directly, without additional SQL file #!/bin/sh –/. &> /dev/null; exec mysql "$@" select ‘Hello, world!’ as test ; The detailed explanation of the trick is here |
|||||
|
Copyright © 2012 MemoSoup - All Rights Reserved Powered by WordPress & Atahualpa |
|||||