Welcome Guest, Not a member yet? Register   Sign In
how to retrieve last record when using 2 PK ?
#6

[eluser]minoh[/eluser]
[quote author="jedd" date="1254539150"]

A new thought, however, pops into my head.

If your PK is a compound key, and you just used the two components of that key to generate your INSERT query .. why don't you just use the two components that you presumably have to hand in your variables?[/quote]

you're right jedd i did'nt think about it, i was focus on only a model side solution. but it can be useful to figure out how to do it using CI.

thanks.


Messages In This Thread
how to retrieve last record when using 2 PK ? - by El Forum - 10-02-2009, 03:33 AM
how to retrieve last record when using 2 PK ? - by El Forum - 10-02-2009, 04:54 AM
how to retrieve last record when using 2 PK ? - by El Forum - 10-02-2009, 05:14 AM
how to retrieve last record when using 2 PK ? - by El Forum - 10-02-2009, 03:36 PM
how to retrieve last record when using 2 PK ? - by El Forum - 10-02-2009, 04:05 PM
how to retrieve last record when using 2 PK ? - by El Forum - 10-05-2009, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB