Changeset 7789 for temp/trunk/data/class
- Timestamp:
- 2006/11/08 15:56:35 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/class/SC_Query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_Query.php
r7711 r7789 410 410 } 411 411 412 // ¼«Æ°ºÎÈÖ¥Þ¥¹¥¿¤è¤ê¡¢Ãͤò¼èÆÀ¤¹¤ë 413 function getautono(){ 414 415 } 412 function get_auto_increment($table_name){ 413 $arrRet = $this->conn->query("SHOW TABLE STATUS LIKE $table_name"); 414 415 $auto_inc_no = $arrRet["Auto_increment"]; 416 417 $this->conn->query("ALTER TABLE $table_name AUTO_INCREMENT=?" , $auto_inc_no + 1); 418 419 return $auto_inc_no; 420 } 421 416 422 } 417 423 ?>
Note: See TracChangeset
for help on using the changeset viewer.
