Welcome Guest, Not a member yet? Register   Sign In
Get data in type from DB
#3

(03-24-2023, 02:58 AM)iRedds Wrote: Type conversion depends on the capabilities of the DBMS driver.
As far as I know, only mysql native driver (mysqlnd) can provide data types from the database.
Actually, this is why all frameworks use their own type conversion.

Why don't you like using Entity?
Why an array?


OK how can i get any SQL query in cast?

Like this one?

$this->db->table('wage')
->where('office', 2)
->orderBy('title')
->get()
->getResultArray();

and how if i have few tables?


$this->db->table('wage as w, kinds as k')
->where('office', 2)
->where('w.kind = k.id')
->orderBy('title')
->get()
->getResultArray();
Reply


Messages In This Thread
Get data in type from DB - by motoroller - 03-24-2023, 01:40 AM
RE: Get data in type from DB - by iRedds - 03-24-2023, 02:58 AM
RE: Get data in type from DB - by motoroller - 03-24-2023, 11:31 AM
RE: Get data in type from DB - by kenjis - 03-24-2023, 09:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB