Jump to content

[SOLVED] SQL - placement of code


random1

Recommended Posts

What's the best place to put SQL code.

 

I have some SQL statements:

 

e.g. SELECT `user_username` FROM `user`;

 

Is it best practice to place these straight forward requests for data within PHP or as "views", "stored procedures" etc in mySQL?

 

Is it best practice to create "views" for the selection of data?

Link to comment
https://forums.phpfreaks.com/topic/130804-solved-sql-placement-of-code/
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.