Welcome Guest, Not a member yet? Register   Sign In
Some error about models.
#5

[eluser]rockstyle[/eluser]
Quote:whenever we create a foreign key column in an already existing table, there should be no values in that table or in otherway to say table should be empty.

I emptied the table and created the foreign key and then inserted the values back to the table

Any simple trick how to do this? The need for emptying the table and insering values every time i update scares the hell out of me. Not to mention performance...


Messages In This Thread
Some error about models. - by El Forum - 02-08-2010, 02:57 AM
Some error about models. - by El Forum - 02-08-2010, 08:20 AM
Some error about models. - by El Forum - 02-08-2010, 12:30 PM
Some error about models. - by El Forum - 02-08-2010, 01:29 PM
Some error about models. - by El Forum - 02-08-2010, 02:47 PM
Some error about models. - by El Forum - 02-08-2010, 06:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB