数据库技术
官方地址:https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/constraint.html 六种约束 使用约束来定义完整性约束限制数据库中的值的规则 Oracle数据库允许您创建六种类型的约束,并允许以两种方式声明 ...
https://downloads.mysql.com/archives/community/ mkdir /usr/local/mysqmkdir /home/data groupadd mysqluseradd -r -s /sbin/nologin -g mysql mysql -d /usr ...
批量更新某个字段 例1: db.getCollection('bond_sentiment_news').find({"source" : 2,"siteUrl" : "http://www.21jingji.com/"}).forEach( function(item){ db.getCollec ...
Got a packet bigger than 'max_allowed_packet' bytes 这是我添加的 重启mysql service mysql restart ...
select * from ( select if(@utype = a.utype, @nu := @nu+1, @nu:=1) as nu, @utype := a.utype, a.* from secuser a order by a.utype,a.id desc ) T where T. ...
##如何快速修改mysql集群内的同一用户不同IP的用户密码 ###修改方法(直接更新该用户下的密码即可) update mysql.user set authentication_string=password('****') where user='user_name'; flush privi ...
//数据转换类型mongodb过滤数据并聚合 db.IotMeterGasUsedRecord_2020.aggregate([{ // 获取字段 $project: { _id: 0, // 类型转换 RecordUsedValue: { $toDouble: { $substrBytes: [" ...
一、导入数据库 1. 登录MySQL mysql -u root -p 2. 进入数据库 mysql>use test; 3. 使用source命令,执行.sql脚本 mysql>source /root/test.sql; ...
1.查看表空间文件存放路径 1 SQL> SELECT tablespace_name, file_id, file_name, round(bytes / (1024 * 1024), 0) total_space FROM dba_data_files ORDER BY tablespace_n ...