Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Powershell中使用SQL命令时出现选项过多错误_Sql_Sqlite_Powershell_Options - Fatal编程技术网

在Powershell中使用SQL命令时出现选项过多错误

在Powershell中使用SQL命令时出现选项过多错误,sql,sqlite,powershell,options,Sql,Sqlite,Powershell,Options,我正在自动化一些任务,但遇到了一个我一直无法解决的问题。基本上,我正在尝试运行使用Powershell中的键的数据库查询。例如: .\SQLite.exe -key $key $database < $commandsTXT \SQLite.exe-key$key$database

我正在自动化一些任务,但遇到了一个我一直无法解决的问题。基本上,我正在尝试运行使用Powershell中的键的数据库查询。例如:

.\SQLite.exe -key $key $database < $commandsTXT
\SQLite.exe-key$key$database<$commandsTXT
但是我不得不使用这个表达式,因为Powershell不喜欢空格和<字符

.\SQLite.exe -key `"$key`" `"$database`" `"<`" `"$commandsTXT`"
\SQLite.exe-key`“$key`”“$database`”这个怎么样

gc $commandsTXT | & .\SQLite.exe -key $key $database
这将把
$commandsTXT
的内容导入SQLite。我假设
$key
$database
是字符串