开发者

Save select statement for later

开发者 https://www.devze.com 2023-04-03 02:35 出处:网络
I\'m often creating interesting SQL statements for my SQLite 开发者_如何学编程database. Is it possible to save these statements for later use?

I'm often creating interesting SQL statements for my SQLite 开发者_如何学编程database.

Is it possible to save these statements for later use?

I'm looking for something more clever than copying to a text file.


Try something like:

CREATE VIEW my_view AS SELECT * FROM my_table;

Then you can re-use it later with:

SELECT * from my_view;

Not sure if this is what you're asking?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号