Setting Variables


Setting Variables

The SET statement is used to set the value of server variables ”the same variables we could see via the show variables statement in the preceding section. This statement uses the syntax

 
 set  variable  =  value  ; 

For example, we might use:

 
 set sql_safe_updates=1; 

This turns on safe updates (as we can at the command line with - “i-am-a- dummy ).

We will make good use of this statement when we come to server optimization in Chapter 17, "Optimizing Your MySQL Server Configuration."



MySQL Tutorial
MySQL Tutorial
ISBN: 0672325845
EAN: 2147483647
Year: 2003
Pages: 261

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net