Mysql-MYSQL freeze and unfreeze query statement

Source: Internet
Author: User
Freeze the table DROPTABLEIFEXISTS 'froze _ info'; CREATETABLE 'froze _ info' ('id' int (11) NOTNULLAUTO_INCREMENTCOMMENT & #39; Id & #39 ;, 'proid' varchar (36) NOTNULLCOMMENT & #39; bidding project ID & #39;, 'companyid' varchar (36) NOTNULLCOMMENT & #39; user ID & #39 ;, 'userid' v mysql Query statement data database oracle

Freeze and unfreeze a table
DROP TABLE IF EXISTSfroze_info;
CREATE TABLEfroze_info(
IdInt (11) not null AUTO_INCREMENT COMMENT 'id ',
ProIdVarchar (36) not null comment 'bidding project identifi ',
CompanyIdVarchar (36) not null comment 'user ID ',
UserIdVarchar (36) default null comment 'authorization representative ',
AmtDecimal () not null comment 'ant ',
FlagChar (1) not null comment 'Operation identifi ',
SrcActVarchar (36) not null comment 'source account ',
DstActVarchar (36) not null comment 'Destination account ',
CreateDateVarchar (19) not null comment 'creation time ',
RunningNumVarchar (36) not null,
Primary key (Id)
) ENGINE = MyISAM AUTO_INCREMENT = 100006 default charset = utf8 COMMENT = 'freeze and unfreeze information ';

WhereProId,CompanyId,UserId,Flag'
The four fields are unique.
Flag' is frozen and restored
How can I find unfrozen data?

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.