mysql中查询表自身属性的语句
摘要:mysql语句 此处查询了 表名、引擎、表注释、表创建时间 select table_name tableName, engine, table_comment tableComment, create_time createTime from information_schema.tables w
阅读全文
posted @
2021-10-28 11:03
汤姆猫8
阅读(146)
推荐(0)
xml中关于批量删除的sql语句
摘要:XML: <delete id="deleteBatch"> delete from sys_role_menu where role_id in <foreach item="roleId" collection="array" open="(" separator="," close=")">
阅读全文
posted @
2021-10-26 17:07
汤姆猫8
阅读(1464)
推荐(0)
MySQL登录时出现 Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES) 的原因及解决办法
摘要:##场景一:调试web程序访问数据库的时候出现 ##场景二:MySQL登陆的时候,区分本地localhost登陆,以及远程登陆。即使本地能够登陆,如果不授权也无法远程登陆 分析原因:(区分)当本地出现这样的情况,就是密码错误,找到正确的密码或者修改密码;当远程登陆的时候,首先确定登陆密码是否正确,第
阅读全文
posted @
2021-10-21 18:38
汤姆猫8
阅读(3408)
推荐(0)
sql中的替换某属性的一部分值。(匹配替换)
摘要:update file set filePath = REPLACE(filePath, "asd", "qqq") where filePath like concat('%', "asd", '/%') 其中filePath为属性,asd为原先的,qqq为替换后的。 concat那部分是匹配 a
阅读全文
posted @
2021-09-28 20:42
汤姆猫8
阅读(194)
推荐(0)