简体   繁体   English

如何创建新的Sqlite元命令

[英]How to create new Sqlite meta-command

In Sqlite shell there are many util meta-command ( list ). 在Sqlite shell中,有许多util元命令( list )。

Is there a way to create a new one? 有没有办法创建一个新的?
Or, why not, modify another one. 或者,为什么不修改另一个呢?

We could create a new meta-command like ".all" that is a shortcut for "select * from $1" or whatever. 我们可以创建一个新的元命令,例如“ .all”,这是“ select * from $ 1”之类的快捷方式。

要在sqlite3命令行外壳中更改或添加点命令,您必须修改其源代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM