Welcome Guest, Not a member yet? Register   Sign In
Active Record - Update - Alias and joined Tables
#1

[eluser]The Wizard[/eluser]
Hello friendsSmile

ive a quick question. i use this query to copy a row from a table, to another.

the query is:
Code:
UPDATE
    c88v2_user_settings as toSettings,
    c88v2_user_status as fromSettings
SET
    toSettings.settings_staff = fromSettings.rights_staff
WHERE
    ( toSettings.id = 8000 )
    AND
    ( fromSettings.id = 4 )

how could i do exactly this, in active query.
#2

[eluser]Jon L[/eluser]
iirc, active record currently does not support join tables for insert/update queries.
#3

[eluser]The Wizard[/eluser]
thanks Smile
#4

[eluser]The Wizard[/eluser]
on a second thought, this seems unneccessary either Smile

still thanks a lot Smile




Theme © iAndrew 2016 - Forum software by © MyBB