• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bulk insert query with datetime field

#1
HI,

I'm still struggle to insert bulk insert data with datetime column to database.

Currently i'm using, if any datetime column in database means,   the below codes i use

        $pub_contact_info = array(
           'cc_contact_id'        => $pub_contact_id,
        );
        $this->db->set('cc_created_date', 'NOW()', FALSE);
        $this->db -> insert('ch_contact', $pub_contact_info);

But, in batch insert means, how can i use NOW() in insert_batch() function

Thanks in advance.
Reply


Messages In This Thread
Bulk insert query with datetime field - by muthu - 10-27-2015, 07:03 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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