标签: php mysql sql
<?php $user_id = mysql_insert_id(); $sql = "INSERT INTO personcase(pcId,pId,docketNo,pType) VALUES ('','$user_id','(SELECT MAX(case.docketNo)FROM case)','C');"; $res = mysql_query($sql) or die(mysql_error()); ?>