My MySQL account only has SELECT privileges for that database. It's on another server; I'm just accessing it. I guess I could import it, add the primary key, then access it from my server, but that seems so dirty. Although, the whole database is damned dirty to begin with.
On Apr 10, 7:27 am, brian <[email protected]> wrote: > Can you add a PK to the table? Create a new table with the same > columns plus an auto_increment/serial/whatever and insert the rows > from the 1st table. Drop the 1st one, then rename the 2nd. > > On Thu, Apr 9, 2009 at 10:45 PM, mattalexx <[email protected]> wrote: > > > Hi > > > I am trying to access a database table that was built without a > > primary key (I know). How would I go about this in CakePHP. Is it > > possible or do I have to just use Model::query all the time? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
