ORM systems
#1

Hi guys after orm systems was released i have one question about sql "AND" and "OR" how they should look like in orm systems?
Reply
#2

Here is AndreTs' orm system tutorial, it might help.

https://sampforum.blast.hk/showthread.php?tid=461766
Reply
#3

i know how to use single one parameter but when i need two or three so how about that?
Reply
#4

I'm not quite sure what are you talking about. If you fire your own queries, and then use orm_apply_cache, you have full control over where statements in queries.
Reply
#5

Код:
mysql_format(hangle, querys, sizeof(querys), "SELECT * FROM `data` WHERE Name = '%s' OR Protocol = '%s' LIMIT 1", PlayerName(playerid), GetPlayerIpEx(playerid));
you see what i mean?
Reply
#6

That's what I was talking about. Now when you pass callback to mysql_tquery, simply use inside it orm_apply_cache.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)