我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在修改mysql表中,修改字段不为空时报错

alter table 成绩 modify age in(4) not null;

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in(4) not null' at line 1
时间: 0s
这个怎么改呀

alter table 成绩 modify age int(4) not null;

alter table 成绩 modify age int(4) not null;

in(4)应是int(4)漏了个t

近期文章

  • 怎样修改这表达式使它不报错
  • No module named 'pyLDAvis'
  • 关于#oj#的问题,如何解决?(语言-c语言)
  • Spring Boot 服务迁移到 k8s , 配置文件 eureka.instance.prefer-ip-address = true,注册在 eureka 依然是服务名称
  • 如何用ps抠的图像在opencv中显示透明?(语言-python)
  • vue日期切换筛选数据
  • PHP是否具有Python的全部()
  • epoll_wait()高占用
  • 伪代码解释并给出结果
  • N5095和6100T哪个更好一点?
  • 【Coppeliasim】利用remoteApi实现Coppeliasim与C++程序的数据通讯
  • 关于#CASTEP#的问题,如何解决?
  • 如何下载使用fastjson
  • 用wusa /quiet /norestart 命令安装完微软的补丁以后不重启是否生效?
  • 设置镜像源发生错误,无法安装是有什么问题?
  • ls -a 无法显示目录下特定文件
  • 如何使用array_map来指定键?
  • clang++: error: linker command failed with exit code 1 (use -v to see invocation)
  • QT for Android 开发的App后台切换后卡死,没有响应
  • python:PDF转excel

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华