c# - Can we query from the mysql dump file (.sql) directly from C#
问题描述
I have dumped mysql database and I get a file that has extension of Backup.sql. I want to ask that is their any way I can directly query(like Select * from products) from .sql file using C# programming language.
解决方案
你不能。您需要一个 SQL 服务器,或者您可以使用某种非客户端服务器数据库引擎,例如SQLite。您仍然需要导入数据。
推荐阅读
- python - 在python中闪烁图像的有效方法
- c - 无法在控制台上打印简单的嵌套 if 条件结果
- java - 我可以使用正则表达式来匹配 java 中的预定义字符串吗?
- amazon-dynamodb - DynamoDB 仅索引一组特定的值
- ios - UITableViewCell 显示不正确的字符串
- perl - 当 LWP::UserAgent 连接到代理时,是否可以添加一些调试输出?
- python - 读取格式化 LaTeX 块中导出的值数组?
- visual-studio-code - WSL环境中的VSCode任务,尝试运行shell脚本时终端一直退出
- elixir - 如何 unix 将一个命令的输出通过管道传输到 Elixir 的混合任务中?
- python - 美丽的汤 find_all() 方法抓取的标签比过滤器指定的要多