当前位置:网站首页>MySql error: SqlError(Unable to execute query", "Can't create/write to file OS errno 2 - No such file...
MySql error: SqlError(Unable to execute query", "Can't create/write to file OS errno 2 - No such file...
2022-07-30 15:13:00 【Black_Friend】
Question:
When I tried to use the command to write the data in mysql to the database today, I reported an error:
QSqlError("1", "QMYSQL: Unable to execute query", "Can't create/write to file 'd:\test.xls' (OS errno 2 - No such file or directory)")My command is this:
QString strFileName = QString("select * from result where ") + str + "into outfile 'd:\\test.xls'";I found a lot of solutions on the Internet:
Try if you can solve your problem, if not, try it
My:
QString strFileName = QString("select * from result where ") + str + "into outfile 'd:/test.xls'";In database writing, try to use less backslashes and more slashes.I think my error is because of this.I still don't use backslashes anymore.
Of course, my approach may only be adapted to my problem.If you can't solve your problem, please don't spray me, thank you guys.
I am just an ordinary code farmer in the code field~
边栏推荐
- 华为再发「天才少年」召集令!曾放弃360万年薪的他也来首秀
- CS内网横向移动 模拟渗透实操 超详细
- Androd 跳转到google应用市场
- 使用 protobuf 进行数据序列化
- 异常情况处置方案
- v-model组件化编程应用
- Start learning C language
- Eclipse connects to SQL server database "recommended collection"
- Teach you how to write an eye-catching software testing resume, if you don't receive an interview invitation, I will lose
- Flask Framework - Sijax
猜你喜欢

Container sorting case

Use of SLF4J

Application of time series database in the field of ship risk management

Metaverse Post Office AI space-themed series of digital collections will be launched at 10:00 on July 30th "Yuanyou Digital Collection"

Flink实时数仓完结

时序数据库在船舶风险管理领域的应用

JVM性能调优

深入浅出零钱兑换问题——背包问题的套壳

SQL 优化这么做就对了!

使用 protobuf 进行数据序列化
随机推荐
异常情况处置方案
The main content of terrain analysis (the special effect level of the wandering earth)
吃透Chisel语言.28.Chisel进阶之有限状态机(二)——Mealy状态机及与Moore状态机的对比
学习 MySQL 需要知道的 28 个小技巧
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
SQL 优化这么做就对了!
SLF4J的使用
What should I do if the sql server installation fails (what should I do if the sql server cannot be installed)
5. DOM
Normal and escaped strings for postgresql
Why did I switch from developer to testing, 3 years software testing engineer, tell you the secret of this
Use of SLF4J
【回归预测-lssvm分类】基于最小二乘支持向量机lssvm实现数据分类代码
机器学习在竞赛和工业界应用区别
使用 protobuf 进行数据序列化
5. DOM
JSON common annotations
深入浅出零钱兑换问题——背包问题的套壳
Start learning C language
[Enlightenment by Opportunity-53]: "Sushu"-3- Self-cultivation and Self-cultivation