MySQL changes the table structure, changes the table data, and changes the column name.

Source: Internet
Author: User

Alter table uni_chn_f_cffex_if_201209_r.convertmaininfo_t0_tick add 'shouldcount 'bigint (20) not null after 'Count'

Modify Field:

Alter table trader_100122.16.tsncorder change cprice cmaxprice double not null;

Cprice-> cmaxprice

Alter table 'uploader _ 100'. tsncorder change 'cminprice' double after 'cpricetype ';

Change Field order

Update 'uni _ chn_f_cffex_if_201208_r '. 'convertinfo _ t0_tick' set 'infomation '= 'ctpfiltered' where 'infomation' = 'filtered ';
Update 'uni _ chn_f_cffex_if_201208_r '. 'convertinfo _ t0_tick 'set' varietycode' = 'if' where 'varietycode' = 'if ';
Update 'uni _ chn_f_cffex_if_201208_r '. 'convertinfo _ t0_tick' set 'source' = 'ctp _ t' where 'source' = 'ctp T ';

Alter table 'uni _ chn_f_cffex_if_201208_r '. 'convertinfo _ t0_tick 'rename to 'uni _ chn_f_cffex_if_201208_r'. 'convertdetailinfo _ t0_tick'

References:

Http://wocclyl.blog.163.com/blog/static/46223504200832304528326/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.