Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
想要在 shell 脚本(即 makefile.sh)中独立执行几个命令,例如 CREATE、INSERT 和 SELECT。例子:-
cqlsh "CREATE <SOME QUERY>;" cqlsh "INSERT <SOME QUERY>;" cqlsh "SELECT <SOME QUERY>;"
有什么办法可以吗??
您可以使用该-e选项并指定 cql 语句或-f指定文件。更多细节在这里。
-e
-f