1

is there any way to execute update contact set email_address='[email protected]'; using isql (firebird) on linux?

I don't want to use -i switch to specify sql script file. And I cannot use interactive mode as I will run the sql command from php script.

2
  • What does echo "update contact set email_address='[email protected]';" | isql do? I haven't used firebird but that should work with any sensible tool. Commented Apr 7, 2011 at 1:38
  • @mu: do you want to create an answer from the above? It works nicely :-) thank you. The whole lot looks like echo "update contact set email_address='[email protected]';" |/opt/firebird/bin/isql -user SYSDBA -pass password /var/lib/firebird/data/radek_db.gdb Commented Apr 7, 2011 at 1:51

1 Answer 1

3

Most sensible SQL shells do The Right Thing when fed commands on the standard input so you should be able to just echo your SQL into isql:

echo "update contact set email_address='[email protected]';" | /path/to/isql --your-favorite-switches
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.