我想从现有表中的两列重新排序行而不创建新行。我有这个脚本,表名 test.table:
SELECT value, variety
FROM test.table
group by value, variety
order by value, variety;
我尝试了update
和alter table
,但我无法让它工作,例如:
update test.table
SELECT value, variety
FROM test.table
group by value, variety
order by value, variety;
这是怎么做到的?