推薦使用mysql管理工具navicat for mysql
備份:
備份完成后會生成一個.sql文件
還原:
首先打開備份的.sql文件,刪除其中的
重新使用navicat還原
運行完后再執行以下命令創建視圖
create view sline_search (channelname,webid,aid,typeid,title,description,litpic,shownum,kindlist,attrid,headimgid,tid,ishidden)
AS
SELECT '線路',webid,aid,1,title,features,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_line
union
SELECT '酒店',webid,aid,2,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_hotel
union
SELECT '車輛',webid,aid,3,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_car
union
SELECT '攻略',webid,aid,4,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_article
union
SELECT '景點',webid,aid,5,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_spot
union
SELECT '相冊',webid,aid,6,title,content,litpic,shownum,kindlist,attrid,headimgid,id,ishidden FROM sline_photo
union
SELECT '簽證',webid,aid,8,title,content,litpic,shownum,'','',0,id,ishidden FROM sline_visa
union
SELECT '團購',webid,aid,13,title,content,litpic,shownum,kindlist,attrid,0,id,ishidden FROM sline_tuan;
會員評論