php - separate queries of SQL functions? -
i using combination of php , mysql. case using 2 queries (one 'select' , 'insert') activity, 3 queries. done different users.
i using mysql_query function separately execute queries. or better use sql function executes queries. want know better regarding performance.
in opinion better practice create function performs single operation well. makes functions easier test , allows them utilized in other operations in future. in case create stored procedure execute routine.
Comments
Post a Comment