Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 03-30-2008, 06:45 AM
johnb johnb is offline
Hatchling Croc
 
Join Date: Jan 2006
Posts: 28
Default MySQL - Saving SQL, procedures and functions

Hello,

Does anybody know if you can save custom SQL queries in MySQl? I could save them locally but is there somewhere on the server in MySQL I can save them?

Also, are we allowed to create and store custom procedures and functions?

Thanks,

John
Reply With Quote
  #2  
Old 03-30-2008, 10:03 AM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: MySQL - Saving SQL, procedures and functions

If you're on a MySQL 5 server you should be able to use views, which are essentially stored queries returned and query-able as quasi-tables. Is that what you're looking for?
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #3  
Old 03-30-2008, 02:09 PM
jimbug's Avatar
jimbug jimbug is offline
Baby Croc
 
Join Date: Jan 2008
Location: California, USA
Posts: 83
Default Re: MySQL - Saving SQL, procedures and functions

You can serialize your queries and store them as files or in a database.
http://us2.php.net/manual/en/function.serialize.php
__________________
Jim
http://www.jimbug.org/
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 05:50 PM.