SQL
关于数据库
besokuse233
这个作者很懒,什么都没留下…
展开
-
PostgreSQL 中关于字符串拆分与合并
with person_name as ( select c.id, array_to_string(array_agg(distinct p.c_name), ' , ') as p_name from biz_notification_config c join biz_notification_person p ...原创 2020-04-28 09:57:31 · 2313 阅读 · 0 评论 -
MySQL(一)
数据表的添加通用语法:CREATE TABLE table_name (column_name column_type);比如CREATE TABLE IF NOT EXISTS `tb_book`( `book_id` INT UNSIGNED AUTO_INCREMENT, `book_title` VARCHAR(100) NOT NULL, `book_author...原创 2019-10-21 15:44:55 · 82 阅读 · 0 评论 -
MySQL中对数据进行增删改查
添加数据INSERT INTO table_name ( field1, field2,...fieldN ) VALUES ( value1, value2,...valueN );如果要添加多条数据的话一定,一个括号代表 一条,不要把多条数据写在一个括号里。INSERT INTO table_name ( field1, field2,...fieldN ) VALUE...原创 2019-10-21 15:55:33 · 144 阅读 · 0 评论