Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
获取所有喜剧或恐怖电影的电影标题,将输出属性名称重命名为“Happily Scared”</p>
SELECT comedy,horror FROM movie ALTER TABLE comedy,horror RENAME TO Happily Scared
我在 sql 查询中不断收到错误。它出什么问题了?
我猜你想要UPDATE你的桌子。没有看到你的表结构,你会想要这样的东西:
UPDATE
update movie set title = 'Happily Scared' where genre in ('comedy', 'horror')
更新语法:
UPDATE table_name SET column1=value, column2=value2,... WHERE some_column=some_value