Python操作sqlserver是异步的吗?
ringa_lee
ringa_lee 2017-04-18 10:30:11
0
1
577

我用pymssql操作sqlserver,执行了一条sql插入语句,然后查询这条刚插入的记录的某个自动生成的字段,有时候会发生查询不到的情况
已经设置为autocommit了,或者说插入语句有没有返回当前行的所有字段的用法啊?这样我就不用再去查了

ringa_lee
ringa_lee

ringa_lee

reply all(1)
左手右手慢动作

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!