• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please Help !! how to using not auto_increment id ?????

#1
[eluser]Unknown[/eluser]
I am new to code igniter, and start my own project. I usually using mysql function UUID() to get unique character id.

How to do it with code igniter ? Active record only allows id using auto increment value is'nt it? Is there any trick ? Could anyone told me the trick ?

Thanks a lot before

regards

Dawning

#2
[eluser]xwero[/eluser]
I don't see why you can't do
Code:
$this->db->set('id','UUID()');
If it's protected, which isn't very likely, then you can add false as a third parameter of the set method.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.