sql works
This commit is contained in:
parent
1e0225bea4
commit
eceebec4fd
|
@ -10,7 +10,10 @@ def sql(self, c,n,m):
|
|||
co.execute(m[4:])
|
||||
a = co.fetchall()
|
||||
if len(a) > 0:
|
||||
self.say(c,' '.join(a))
|
||||
op = ''
|
||||
for i in a:
|
||||
op = op+' | '+ ', '.join(i)
|
||||
self.say(c,op)
|
||||
else:
|
||||
self.say(c, 'no output')
|
||||
conn.commit()
|
||||
|
|
Loading…
Reference in New Issue