19.06.2016, 12:04
Quote:
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 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. |