Insert Query #102

Closed
bestmomo opened this Issue Jan 24, 2013 · 0 comments

Comments

Projects
None yet
2 participants

I think the example of multiple insert must be :

DB::table('users')->insert(
array(
array('email' => 'taylor@example.com', 'votes' => 0),
array('email' => 'dayle@example.com', 'votes' => 0)
)
);

And there is a bad comma in the solo insert, must be :

DB::table('users')->insert(
array('email' => 'john@example.com', 'votes' => 0)
);

And in this one that must be :

$id = DB::table('users')->insertGetId(
array('email' => 'john@example.com', 'votes' => 0)
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment