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

how we can crop an image and how we can display it..

1 Answers   Satyam,


Can constructor be private in php?

0 Answers  


What is the use of header in php?

0 Answers  


Which is better php or wordpress?

0 Answers  


Explain array_uintersect()?

0 Answers  


What is a namespace in php?

0 Answers  


How to convert a character to an ascii value?

0 Answers  


Name some of the functions in php.

0 Answers  


How many columns can be added in a table in mysql?

0 Answers  


What type of comments are supported by PHP.

0 Answers  


What is mysqli_query?

0 Answers  


What are the final class and final method?

0 Answers  


Categories