我想从数据库视图中删除列,在这里,我想删除max_num = 10000 # or whatever
for odd in range(3, max_num, 2):
factor_count = 0
for factor in range(2, math.floor(math.sqrt(max_num)) + 1):
if odd % factor == 0:
factor_count += 1
if factor_count == 0:
print(odd)
列但是当我尝试SQL查询时它无法工作:
答案 0 :(得分:1)
使用此...
ALTER TABLE "table_name" DROP COLUMN "Test";