1、对已存在的表,进行添加列操作:
alter table findlaw_q_copy
add COLUMN key_word TEXT
2、连表查询
SELECT count(*) from findlaw_q_copy t1 WHERE t1.lawqaid not in(SELECT n.lawqaid from findlaw_a_copy n)
3、更新数据库中某一列数据
'''update findlaw_q_copy set word_vec = '{}' where lawqaid={}'''.format(message[1], message[0])
update 表名 set 列名=值 where 条件 条件用来控制更新哪一条数据