You can also use UUID as a primary key
<http://book.cakephp.org/view/68/Creating-Database-Tables#Using-UUIDs-as-Primary-Keys-70>


On Sun, Mar 8, 2009 at 6:14 PM, James K <[email protected]> wrote:
>
> You can't. All cake models must have an auto-incremented numeric
> primary key called "id".
>
> Even if you weren't using Cake, making a non-numeric, user editable
> primary key is generally a very bad idea...
>
> On Mar 8, 4:31 pm, khurram <[email protected]> wrote:
>> hello!
>>
>> 1. can any body tell me,may i use ` id` varchar(20)  as primary key of
>> table.
>> 2.if i can use ,the how to make form to input varchar primary key by
>> user.i dont want to use auto incremented primary key.
>>
>> kindly help
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to