Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can you "tell" MySQL server to cache a query?

Answers were Sorted based on User's Feedback



How can you "tell" MySQL server to cache a query?..

Answer / priti

Yes you can tell Mysql to cache the query and not to cache
the query with following options

SQL_CACHE
SQL_NO_CACHE

SELECT SQL_CACHE id, name FROM your_table_name; //This will
get cached

SELECT SQL_NO_CACHE id, name FROM your_table_name; //This
will not get cached

(Related cache setting should also be effective for
SQL_CACHE).

Thanks

visit my profile and get helped on PHP and other issues on
http://pritisolanki.blogspot.com

Is This Answer Correct ?    4 Yes 0 No

How can you "tell" MySQL server to cache a query?..

Answer / ravi

$db = mysql_connect('localhost','username','password');
mysql_select_db("databasename", $db);
if (!$db)
{
die('Could not connect: ' . mysql_error());
}

$abc=mysql_query("write your query");

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More PHP Interview Questions

What is the default time in seconds for which session data is considered valid?

0 Answers  


Where session is stored?

0 Answers  


What is the use of htmlentities in php?

0 Answers  


What is csrf token in php?

0 Answers  


How to create an array in php?

0 Answers  


What are php data types?

0 Answers  


How many types of inheritances used in php and how we achieve it.

0 Answers  


What is the main difference between php 4 and php 5?

0 Answers  


what are the basic steps to installation php4+mysql4+phpmyadmin on IIS web server?. Pls write the complete steps.

2 Answers  


How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the application should restrict them from login.

1 Answers  


How to get a total number of rows available in the table?

0 Answers  


What is the salary for php developer(Fresher)?

1 Answers  


Categories