代码语言:python代码运行次数:0复制
sql1= "SELECT nyevents.eventid,nyevents.urlname,nyevents.time,nygroups.description"
"FROM (nymembergroups INNER JOIN nygroups ON nygroups.urlname = nymembergroups.groupurl "
"AND nymembergroups.usrid = 214231538)INNER JOIN nyevents ON "
"nygroups.urlname = nyevents.urlname AND nyevents.time = 1464820200000"
"ORDER BY nyevents.time"
cursor = conn.execute(sql1)
for row in cursor:
print (row[0],row[1],row[2],row[3],"/n")
conn.commit()
conn.close()
出现了如标题的错误提示。。。cursor = conn.execute(sql1) 这句