SQLite functions!
#4

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
db_get_field fetches the field content passed by a field number.

db_get_field_assoc fetches the field that matches the fieldname you passed.

In theory, db_get_field_assoc should be slower than db_get_field, because db_get_field_assoc has to loop through the fields and compare names.
Quote:
Originally Posted by Emmet_
Посмотреть сообщение
db_get_field gets a value from the specified field ID, while db_get_field_assoc gets a value from the specified field name.

https://sampwiki.blast.hk/wiki/Db_get_field
https://sampwiki.blast.hk/wiki/Db_get_field_assoc
Thank you both (rep++)
Reply


Messages In This Thread
SQLite functions! - by Youice - 25.10.2012, 00:45
Re: SQLite functions! - by Emmet_ - 25.10.2012, 00:47
Re: SQLite functions! - by ReneG - 25.10.2012, 00:49
Re: SQLite functions! - by Youice - 25.10.2012, 00:50
Re: SQLite functions! - by Youice - 25.10.2012, 00:55
Re: SQLite functions! - by ReneG - 25.10.2012, 00:57
Re: SQLite functions! - by Youice - 25.10.2012, 00:59
Re: SQLite functions! - by ReneG - 25.10.2012, 01:02
Re: SQLite functions! - by Youice - 25.10.2012, 01:09
Re: SQLite functions! - by Kevin FOx - 25.10.2012, 01:18

Forum Jump:


Users browsing this thread: 4 Guest(s)