删除"测试"从视图列

时间:2016-07-27 05:01:01

标签: mysql

我想从数据库视图中删除列,在这里,我想删除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查询时它无法工作:

enter image description here

1 个答案:

答案 0 :(得分:1)

使用此...

ALTER TABLE "table_name" DROP COLUMN "Test";