当前位置:网站首页>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~
边栏推荐
- Go to Tencent for an interview and let people turn left directly: I don't know idempotency!
- 机器学习在竞赛和工业界应用区别
- 3 years of software testing experience, the interview requires a monthly salary of 22K, obviously he has memorized a lot of interview questions...
- Allure Advanced - Dynamically Generate Report Content
- JUC常见的线程池源码学习 02 ( ThreadPoolExecutor 线程池 )
- Hello,World
- JSON common annotations
- Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
- Why do software testing have to learn automation?Talk about the value of automated testing in my eyes
- 我们公司用了 6 年的网关服务,动态路由、鉴权、限流等都有,稳的一批!
猜你喜欢

基于5G的仓储信息化解决方案2022

【元胞自动机】基于元胞自动机模拟生命演化、病毒感染等实例附matlab代码

A simple change for problem, knapsack problem sets of shell

A Small Case About Containers

JVM性能调优

00 testers of seasoning after nearly a year, whether to change careers or to learn the software testing students summarized the following heart advice

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

华为再发「天才少年」召集令!曾放弃360万年薪的他也来首秀

LeetCode_98_验证二叉搜索树

MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
随机推荐
How to use Databricks for data analysis on TiDB Cloud | TiDB Cloud User Guide
获取Google Advertising ID作为唯一识别码
双碳目标下:农田温室气体排放模拟
SSE for Web Message Push
Office Automation | Office Software and Edraw MindMaster Shortcuts
The evolution of content products has three axes: traffic, technology, and product form
MPSK抗噪声性能对比(即MPSK标准误码率曲线)
What should I do if the sql server installation fails (what should I do if the sql server cannot be installed)
Could not acquire management access for administration
What is the relationship between the construction of smart cities and 5G technology in the new era
异常情况处置方案
71页全域旅游综合整体解决方案2021 ppt
Flink实时仓库-DWS层(状态编程,windowall的使用,数据保存到clickhouse)模板代码
Chapter6 : Has Artificial Intelligence Impacted Drug Discovery?
ToDesk版本更新,引入RTC传输技术,是否早以替代向日葵远程控制?
使用 protobuf 进行数据序列化
Flask框架——Flask-SQLite数据库
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
去腾讯面试,直接让人出门左拐 :幂等性都不知道!
开始学习C语言了