【发布时间】:2016-01-16 17:09:51
【问题描述】:
我编写了这段代码,旨在重新排序我的原始数据,如下所示,
SELECT Place_id,
MAX(case when days= 'Mon;Tue;Wed;Thu;Fri;' then hours end) As 'Mon-Fri',
MAX(case when days= 'Sat;' then hours end) As 'Sat',
MAX(case when days= 'Sun;' then hours end) As 'Sun'
FROM CRdata.time
GROUP BY Place_id
当我在 MySQL Workbench 上运行代码时,
the result gird shows read only which prevent me from importing the raw data
我检查了 Place_id 是否设置为主键,但它仍然是只读的。 我已经搜索了解决方案,但不幸的是找不到任何解决方案。 我该怎么做才能使表格可编辑?
【问题讨论】:
-
我不关注你了,从哪里导入什么数据?
标签: mysql import mysql-workbench