[Include] Easy MySQL (stop writing long queries)
#10

Quote:
Originally Posted by eco1999
View Post
You see if you look good.

Code:
SQL::TREAD //Describes a table read handle
SQL::MREAD //Describes a multi read handle
SQL::MREAD2 //Describes a multi read handle
SQL::MTREAD //Describes a multi table read handle
Examples:

Code:
new handle = SQL::Open(SQL::TREAD, "hotel"); 
SQL::ReadInt(handle, "id", Hotel[i][id]); 
SQL::ReadFloat(handle, "h_posx", Hotel[i][h_posx]); 
SQL::ReadFloat(handle, "h_posy", Hotel[i][h_posy]); 
SQL::ReadFloat(handle, "h_posz", Hotel[i][h_posz]); 
SQL::Close(handle);//You must close the handle.
Code:
new handle = SQL::Open(SQL::MTREAD, "houses"); 
SQL_GetCallback(handle, i) 
{ 
    SQL::ReadInt(handle, "id", Houses[i][id], i); 
    SQL::ReadFloat(handle, "h_posx", Houses[i][h_posx], i); 
    SQL::ReadFloat(handle, "h_posy", Houses[i][h_posy], i); 
    SQL::ReadFloat(handle, "h_posz", Houses[i][h_posz], i); 
} 
SQL::Close(handle);//You must close the handle.
etc.
Good for you. Now, what's hard to understand in my script, please?
Reply


Messages In This Thread
Easy MySQL (stop writing long queries) - by Private200 - 18.06.2016, 17:54
Re: Easy MySQL (stop writing long queries) - by Gammix - 18.06.2016, 18:04
Re: Easy MySQL (stop writing long queries) - by Private200 - 18.06.2016, 18:15
Re: Easy MySQL (stop writing long queries) - by Gammix - 18.06.2016, 18:19
Re: Easy MySQL (stop writing long queries) - by Private200 - 18.06.2016, 18:23
Re: Easy MySQL (stop writing long queries) - by Gasman - 19.06.2016, 01:22
Re: Easy MySQL (stop writing long queries) - by Max_Andolini - 19.06.2016, 01:39
Re: Easy MySQL (stop writing long queries) - by Private200 - 19.06.2016, 06:47
Re: Easy MySQL (stop writing long queries) - by Max_Andolini - 19.06.2016, 10:07
Re: Easy MySQL (stop writing long queries) - by Private200 - 19.06.2016, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)