我在表格中插入值,但我想在插入时获取列的id;
这些是我的代码;
$addInsurance = mysql_query("INSERT INTO insurance (coo_Country,pod_Country,startDate,finishDate,insGNumber,insKNumber,customer_customer_ID) VALUES ('$cikiscity','$variscity','$baslangicTarih','$bitisTarih','$yetiskin','$cocuk','$customer_id') SET '$ID'=insurance_ID");
if (!$addInsurance) {
echo'Could not run query' . mysql_error($connection);
}
我想在保险表中获得insuranse_ID我该怎么办?