• mysql数据表的字段操作


    CREATE TABLE `users` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `username` varchar(255) DEFAULT NULL,
    `PASSWORD` varchar(255) DEFAULT NULL,
    `name` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
    ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

    修改字段

    alter table users modify password varchar(255) not null default '' comment '测试'

    增加字段

    alter table users add column remark varchar(255) not null default '' comment '备注'

    删除字段

    alter table users drop column remark

  • 相关阅读:
    IfcDirection
    IfcPcurve
    IfcOffsetCurve3D
    IfcOffsetCurve2D
    IfcLine
    IfcEllipse
    IfcCircle
    IfcConic
    IfcTrimmedCurve
    QDockWidget设置为tab切换形式
  • 原文地址:https://www.cnblogs.com/shuaiandjun/p/7173031.html
Copyright © 2020-2023  润新知