原帖由 都是蟲子惹的禍 于 2009-3-5 18:21 發(fā)表
#!/usr/bin/python
# import MySQL module
import MySQLdb
# get user input
name = raw_input("Please enter a name: ")
# connect
db = MySQLdb.connect(host="localhost", user="nobody", passw ...
原帖由 luffy.deng 于 2009-3-6 08:59 發(fā)表
這個到底是想說明什么問題?lastrowid和主鍵id有什么關(guān)系?主鍵id是什么意思?
另外這個是不是msysql特有的,還是適用于所有數(shù)據(jù)庫?
歡迎光臨 Chinaunix (http://72891.cn/) | Powered by Discuz! X3.2 |