Saving commands for later re-use in MySQL?
Posted
by Zombies
on Stack Overflow
See other posts from Stack Overflow
or by Zombies
Published on 2010-03-11T12:23:04Z
Indexed on
2010/03/18
13:41 UTC
Read the original article
Hit count: 329
mysql
|mysql-query
What would be the equivalant in MySQL for:
Saving a command for later reuse.
eg: alias command1='select count(*) from sometable;' Where then I simply type command 1 to get the count for SomeTable.
Saving just a string, or rather part of a command.
eg: select * from sometable where $complex_where_logic$ order by attr1 desc; WHere $complex_where_logic$ is something I wish to save and not have to keep writing out
© Stack Overflow or respective owner