Changeset 7791 for temp/trunk/data
- Timestamp:
- 2006/11/08 15:59:14 (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
r7789 r7791 410 410 } 411 411 412 // auto_increment¤ò¼èÆÀ¤¹¤ë 412 413 function get_auto_increment($table_name){ 414 // ¥í¥Ã¥¯¤¹¤ë 415 $this->BEGIN(); 416 417 // ¼¡¤ÎIncrement¤ò¼èÆÀ 413 418 $arrRet = $this->conn->query("SHOW TABLE STATUS LIKE $table_name"); 414 415 419 $auto_inc_no = $arrRet["Auto_increment"]; 416 420 421 // Ãͤò¥«¥¦¥ó¥È¥¢¥Ã¥×¤·¤Æ¤ª¤¯ 417 422 $this->conn->query("ALTER TABLE $table_name AUTO_INCREMENT=?" , $auto_inc_no + 1); 423 424 // ²ò½ü¤¹¤ë 425 $this->COMMIT(); 418 426 419 427 return $auto_inc_no;
Note: See TracChangeset
for help on using the changeset viewer.
