Du kan bruge system
kommando
fra mysql
kommandolinjeklient:
#!/bin/bash
mysql -uUser -pPasswd << EOF
system echo 'I wanna echo something by using echo which is run by bash';
use Mydb
some sql commands here
commit;
EOF
Du kan bruge system
kommando
fra mysql
kommandolinjeklient:
#!/bin/bash
mysql -uUser -pPasswd << EOF
system echo 'I wanna echo something by using echo which is run by bash';
use Mydb
some sql commands here
commit;
EOF