i have a table field type varchar(36) and i want to generate it dynamically by mysql so i used this code:
$sql_code = \'insert into table1 (id, text) values
Its pretty easy actually you can pass this to mysql and it will return the inserted id.
set @id=UUID(); insert into (,) values (@id,'another value'); select @id; 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题