开发者

How to linebreak long string constructs?

开发者 https://www.devze.com 2022-12-29 18:10 出处:网络
I am editing SQLite SQL statements of substantial length. How can I break these into several lines to allow comfortablt editing?

I am editing SQLite SQL statements of substantial length.

How can I break these into several lines to allow comfortablt editing?

const char *sql = "SELECT arguments arguments arguments arguments arguments arguments arguments arguments arguments arg开发者_如何学运维uments FROM a, b, WHERE condition condition condition condition condition condition condition"

into

const char *sql = "SELECT arguments arguments arguments arguments arguments
                          arguments arguments arguments arguments arguments
                     FROM a, b
                    WHERE condition condition condition"

cheers


const char *sql = "SELECT arguments arguments arguments arguments arguments"
                          "arguments arguments arguments arguments arguments"
                    "FROM a, b"
                    "WHERE condition condition condition";
0

精彩评论

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