新建的表想修改,可以直接drop掉,重新创建。 但是已经使用的表,有数据了,也可能被引用,就不适合drop了,需要用到 alter 对表或字段做局部调整(对表的定义或者说结构进行修改)。 1.1.1 增加列 要增加一个列,可以使用这样的命令: ALTER TABLE products ADD COL ...
分类:
其他好文 时间:
2021-01-02 10:39:32
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< ...
分类:
移动开发 时间:
2021-01-02 10:37:44
阅读次数:
0
// 事件(Event)机制 const EventEmitter = require('events'); const emitter = new EventEmitter(); // 侦听一个事件 emitter.on("a", (event) => { console.log(event + ...
分类:
其他好文 时间:
2021-01-01 12:51:35
阅读次数:
0
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <p><a href ...
分类:
其他好文 时间:
2021-01-01 12:15:13
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="htt ...
分类:
其他好文 时间:
2021-01-01 11:57:44
阅读次数:
0
显示某个区域步骤: (1)加载该区域的矢量地图数据 (2)通过registerMap注册到echarts全局对象中 (3)指明geo配置下的type和map属性 (4)通过zoom放大该区域 (5)通过center定位中心点 <script src="lib/echarts.min.js"></sc ...
分类:
其他好文 时间:
2020-12-31 12:08:14
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum ...
分类:
其他好文 时间:
2020-12-31 11:49:47
阅读次数:
0
错误提示: Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelli ...
分类:
Web程序 时间:
2020-12-30 11:32:15
阅读次数:
0
1.功能简介 sed,是一种流编辑器,Linux三剑客命令之一。其特点为非交换式、逐行处理。 2.语法格式 sed [OPTION]... {script-only-if-no-other-script} [input-file].. 命令 参数 条件-处理 (指令) 处理文件信息 其中处理动作可由 ...
分类:
其他好文 时间:
2020-12-30 11:00:39
阅读次数:
0
<script> axios.defaults.baseURL='http://localhost:8080/student';//配置全局属性 axios.defaults.timeout=10000;//超时10s axios.get('getAllstudent').then(res=>{// ...
分类:
移动开发 时间:
2020-12-30 10:59:44
阅读次数:
0