84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我用pymssql操作sqlserver,执行了一条sql插入语句,然后查询这条刚插入的记录的某个自动生成的字段,有时候会发生查询不到的情况已经设置为autocommit了,或者说插入语句有没有返回当前行的所有字段的用法啊?这样我就不用再去查了
ringa_lee
cur.lastrowid can get the last inserted id. Generally, this is obtained based on the connection. The insertion of other connections will not affect the obtained value
cur.lastrowid can get the last inserted id. Generally, this is obtained based on the connection. The insertion of other connections will not affect the obtained value