Jump to content

Setting shortcut for a particular query


paragkalra

Recommended Posts

Hello Folks,

 

Is there a way we can set shortcuts in mysql. Take for instance I use "select * from <mytable>" after every 5 minutes to check the values of various rows.

 

So I was think if I can get a way to set a shorcut to above query something like 'set myquery =  "select * from <mytable>"

 

This is should fetch me all the rows from <mytable> after executing "myquery" on "mysql" prompt as shown below:

mysql>myquery

 

For people knowing Linux - I want something like "alias" command.

Link to comment
https://forums.phpfreaks.com/topic/173976-setting-shortcut-for-a-particular-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.