Welcome Guest, Not a member yet? Register   Sign In
Active record vs SQL
#1

[eluser]Dave Stewart[/eluser]
HI there,
I'm pretty new to CI so willing to take on all opinions for a new way of working.

However, I can't really see the advantage of using Active Record over SQL for a lot of queries. I'm pretty handy with SQL, so can someone explain what I can't see?

In many cases the SQL is just easier to read in my view, and I would imagine certainly easier to debug, as you just dump it into phpMyAdmin or such like if your query fails.

Saying that, I haven't used AR yet, so I don't know.

So in what situation would I use the AR methods, and in what situations would I just use query($some_sql)?

Thanks,
Dave


Messages In This Thread
Active record vs SQL - by El Forum - 06-23-2008, 04:00 AM
Active record vs SQL - by El Forum - 06-23-2008, 04:23 AM
Active record vs SQL - by El Forum - 06-23-2008, 10:46 AM
Active record vs SQL - by El Forum - 06-23-2008, 06:36 PM
Active record vs SQL - by El Forum - 06-23-2008, 08:05 PM
Active record vs SQL - by El Forum - 06-23-2008, 11:31 PM
Active record vs SQL - by El Forum - 06-24-2008, 03:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB