- 博客(10)
- 收藏
- 关注
转载 Java.sql.SQLException: Parameter index out of range (1 > number of parameter)
在上面的代码中,我们试图向数据库中的users表插入一条新的记录,传入了name和age作为参数。然而,有时候我们可能会遇到一个名为"java.sql.SQLException: Parameter index out of range (1 > number of parameter)"的异常。这个异常的意思是参数索引超出范围,通常是由于预编译的SQL语句中的参数索引与提供的参数数量不匹配所导致的。出现这个异常的原因是由于我们错误地设置了参数的索引,不匹配预编译的SQL语句中的参数索引。
2023-11-23 23:18:48 1279 1
转载 oracle 与desc相似的,Oracle中和MYSQL show create table tablename,desc tablename,show tables, show databases
oracle查询create语句
2022-12-26 23:01:39 183 1
原创 mysql报错: Illegal mix of collations (utf8mb4_0900_ai_ci,COERCIBLE) and (gbk_chinese_ci,IMPLICIT) for
Caused by: java.sql.SQLException: Illegal mix of collations (utf8mb4_0900_ai_ci,COERCIBLE) and (gbk_chinese_ci,IMPLICIT) for operation 'UNION'
2022-11-13 21:39:02 1059
原创 ORA-01747: user.table.column, table.column 或列说明无效
springboot2.1.7 + mybatisplus3.1.2在往oracle插入数据时,报错:ORA-01747: user.table.column, table.column 或列说明无效原因:因为使用了oracle的关键字所引起,表中有个字段名为order和values,在oracle中是关键字。(可以把SQL语句复制到连接工具中如Navicate,关键字会显示出不一样的颜色...
2020-03-25 23:53:26 313
原创 springboot启动失败
springboot启动失败,后台错误信息如下java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'.......................................................................
2020-02-20 23:47:04 4593 1
原创 Tomcat发布项目时报错:Could not publish server configuration for Tomcat v7.0 Server at localhost.
基本描述:用Spring Tool Suit开发一个web项目时,之前已经建了一个项目(如名称叫Test),然后后面将Test项目重命名后又导入了Spring Tool Suit了,取名为Test2,我后面把一个外部的index.jsp页面直接复制粘贴到Test2中,替换了原来的index.jsp页面。然后再来把Test2重新发布到Tomcat7中时,出现错误:Could not publish...
2020-02-20 13:44:46 140
原创 初识springboot
启动springboot报错,提示信息如下Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.错误原因:ApplicationContext不能从@ComponentScan默认包启动,而我的Springboot启动类直接放在默认包src\main\java中...
2020-02-20 13:34:08 67
原创 mysql8.0.x创建用户及授权
一,mysql8.x创建用户及授权mysql> use mysql;创建数据库mysql> create database db_demo;创建用户”rick“为要创建的用户名;localhost表示只允许本地登录,若把localhost改为“%”则表示任何机器都运行连接;“123456"代表用户登录密码;mysql> create user ‘rick’@‘loca...
2020-02-20 13:30:01 591
原创 oracle 11g安装出现的问题
在安装Oracle11g时,遇到的问题:1,设置登录口令时,提示不符合要求。一般对于学习Oracle的用户来说,肯定想设个简单的登录密码,所有这里我们也可以忽略系统的错误提示,继续下一步。2,在检查时,报错“Environment variable: “PATH” - This test checks whether the length of the environment variabl...
2020-02-20 12:15:33 380
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人