-1
請參閱我的查詢,MySQL的插入子查詢不能
insert into wp_9m8phu_term_relationships as rel
(object_id,term_taxonomy_id,term_order)
values
(
'select object_id+1 as object_id from wp_9m8phu_term_relationships
where object_id!='' order by object_id desc limit 0,1',
'".$fnds_id."',
0
)
這查詢不工作。有人在這方面幫助我。
你在哪裏,PHP調用它?什麼不工作,是否有錯誤信息? – codeling 2011-12-17 12:19:17