1,将id列放在第一列 alter table cqc_xa.cqc_xa_diff_case modify id int unsigned auto_increment first; 2,增加自增id alter table test.student add column indexxx int( ...
分类:
数据库 时间:
2021-03-03 12:17:55
阅读次数:
0
常规公式理想情况可行,根据运动学可以直接写出来 \[ y(t)= \frac{1}{2}gt^2+v_0t+y_0 \] 但在游戏中是不可行的,因为情况很复杂,粒子可能会碰撞、着地等等,函数变成非连续的,加速度随时间改变,函数很复杂受玩家影响 因此我们需要转用数值方法求解: 时间上连续的问题转化为近 ...
分类:
其他好文 时间:
2021-03-01 13:48:20
阅读次数:
0
背景:测试服/正式服的字段类型为varchart(200) 页面该字段录入超过200个字符保存。测试服报错“Data too long for column”;正式服自动截取200个字符保存,没有报错。 原因:mysql的my.ini文件中的sql_mode配置不同,通过 select @@GLOB ...
分类:
数据库 时间:
2021-02-25 12:16:01
阅读次数:
0
错误原因:这里就是说,分组这一列里面,包含了非字符串的内容,比如数字。因为 .str.contains 的使用就要求这个字段必须是字符串,不能掺杂数字的。 解决方案: # 包含对应关系的所有行 data_ych_pid = self.database[self.database[column_nam ...
分类:
其他好文 时间:
2021-02-24 13:25:38
阅读次数:
0
Strict Mode严格模式 1.不是用var声明的变量,在严格模式下不被通过 2.带有"eval"的操作都被禁止 <script> "use strict" 全局 globalVal=100; 会报错 var globalVal=100; 不会 var eval=100; console.log ...
分类:
Web程序 时间:
2021-02-24 13:05:15
阅读次数:
0
查看sql_model参数命令:SELECT @@SESSION.sql_mode; 解决方法:命令行输入set sql_mode =’STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENG ...
分类:
数据库 时间:
2021-02-24 12:58:47
阅读次数:
0
pyspark有个bug, 虽然下面代码写了 write.mode("overwrite")但是不生效 spark.conf.set("hive.exec.dynamic.partition.mode", "constrict") db_df.repartition(1).write.mode("o ...
分类:
其他好文 时间:
2021-02-23 14:14:20
阅读次数:
0
1095 解码PAT准考证 (25 point(s)) PAT 准考证号由 4 部分组成: 第 1 位是级别,即 T 代表顶级;A 代表甲级;B 代表乙级; 第 2~4 位是考场编号,范围从 101 到 999; 第 5~10 位是考试日期,格式为年、月、日顺次各占 2 位; 最后 11~13 位是 ...
分类:
其他好文 时间:
2021-02-23 14:02:54
阅读次数:
0
sharding: jdbc: config: sharding: tables: myorder: key-generator-column-name: id #主键 actual-data-nodes: db$->{0..1}.myorder_$->{0..1} #分库策略 database‐s ...
分类:
数据库 时间:
2021-02-22 12:45:00
阅读次数:
0
1 安装nvidia驱动 $ ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00001C03sv00001B4Csd000011D7bc0 ...
分类:
系统相关 时间:
2021-02-22 12:22:33
阅读次数:
0