mysql

  • mysql中的主键递增

    CREATE TABLE customers(cust_id int NOT NULL AUTO_INCREMENT,cust_name char(50) NOT NULL ,PRIMARY KEY (cust_id)) ENGINE=InnoDB; 第一次执行时: insert into cust…

    2025年11月7日
    000
  • mysql中的引擎

    innodb:是一个可靠的事务处理引擎,它不支持全文搜索。 memory:功能等同于myisam,由于数据存储在内存中,速度很快,适合于临时表。 myisam:性能极高的引擎,它支持全文搜索,但不支持事务处理。 混合使用引擎有一点需要注意:外键不能跨引擎  以上就是mysql中的引擎的内容,更多相关…

    2025年11月7日
    000
  • mysql智能存储过程

    创建存储过程: CREATE procedure ordertotal(in onumber int, in taxable boolean, out ototal decimal(8,2) ) COMMENT ‘Obtain order total,optionally adding tax’be…

    2025年11月7日
    000
  • MySQL 终端:更改表、字符集和删除

    修改表 mysql 中带有 modify 子句的 alter table 命令用于更改表中现有列的定义。命令结构如下: alter table table_name modify column_name data_type [options]; table_name: 正在修改列的表的名称。colu…

    2025年11月7日
    100
  • jOOQ简介

    jOOQ简介jOOQ简介jOOQ简介jOOQ简介

    jooq.org 声明 jooq 从您的数据库生成 java 代码,并允许您通过其流畅的 api 构建类型安全的 sql 查询。 jooq(java 面向对象查询)是 java 中的一个库,它提供了一种富有表现力且类型安全的方式来构建 sql 查询。 为什么要使用jooq? 首先,该库将您的数据库模…

    2025年11月7日 用户投稿
    200
  • mysql null和‘ ’

    null”是空字符 相当于在银行有账号,不过没钱null是空 相当于在银行账号都没有 null比较需要用 is null 或者 is not null 判断 null遇见运算符 一律返回null =null 或 !=null 等等一律返回null ,并且效率不高,所以建表时候一般都会有n…

    2025年11月7日
    000
  • mysql order by

    order by排序:在结果集出来之后才有意义 必须在where ,group by ,having 之后desc(降序)/asc(升序) 用字段排序  用shop_price 降序排列 select goods_name,cat_id,shop_price from goods where cat…

    2025年11月7日
    100
  • mysql having

    having查询差价在200以上的列 select goods_id,(market_price – shop_price ) as chajia from goods having chajia>200; 查询挤压的总货款 select sum(goods_number*shop_price…

    2025年11月7日
    000
  • mysql 统计函数和group by

    五个统计函数(单独使用,意义不大,经常和分组group by组合使用)max 最大 select max(shop_price) from goods;min 最小 select min(shop_price) from goods;sum 求和 select sum(shop_price) fro…

    用户投稿 2025年11月7日
    000
  • mysql 表的增删改

    创建一张class表 create table class(id int primary key auto_increment,sname varchar(10) not null default ”,gender char(1) not null default ”,company varch…

    2025年11月7日
    200
关注微信