1、SHOW FULL COLUMNS FROM oa_flow_set
2、导出行到.csv
3、给每个字段设置单元格格式,加上逗号
,id
,name
,num
,sort
,table
,where
,summary
,summarx
,type
,pctx
,mctx
,wxtx
,emtx
,sericnum
,isflow
,receid
,recename
,optdt
,status
,islu
,tables
,names
,statusstr
,isgbjl
,isgbcy
,isscl
,isup
,ddtx
,isbxs
,lbztxs
,isflowlx
,iscs
,companyid
4、拼接mysql
INSERT INTO oa_flow_set (
oa_flow_set.name
,num
,sort
,oa_flow_set.table
,oa_flow_set.where
,summary
,summarx
,type
,pctx
,mctx
,wxtx
,emtx
,sericnum
,isflow
,receid
,recename
,optdt
,status
,islu
,oa_flow_set.tables
,oa_flow_set.names
,statusstr
,isgbjl
,isgbcy
,isscl
,isup
,ddtx
,isbxs
,lbztxs
,isflowlx
,iscs
) SELECT
'商机'
,'customer2'
,sort
,'customer2'
,oa_flow_set.where
,summary
,summarx
,type
,pctx
,mctx
,wxtx
,emtx
,sericnum
,isflow
,receid
,recename
,optdt
,status
,islu
,oa_flow_set.tables
,oa_flow_set.names
,statusstr
,isgbjl
,isgbcy
,isscl
,isup
,ddtx
,isbxs
,lbztxs
,isflowlx
,iscs
FROM oa_flow_set WHERE oa_flow_set.table='customer'
1、插入模块元素表
INSERT INTO oa_flow_element (
mid
,name
,fields
,fieldstype
,sort
,dev
,isbt
,data
,islu
,iszs
,attr
,iszb
,isss
,lattr
,width
,lens
,savewhere
,islb
,ispx
,isalign
,issou
,istj
,gongsi
,placeholder
,isonly
,isdr
,specialwhere
) SELECT
156
,name
,fields
,fieldstype
,sort
,dev
,isbt
,data
,islu
,iszs
,attr
,iszb
,isss
,lattr
,width
,lens
,savewhere
,islb
,ispx
,isalign
,issou
,istj
,gongsi
,placeholder
,isonly
,isdr
,specialwhere
FROM oa_flow_element WHERE oa_flow_element.mid=7