Objective-C: how to splt a string constant across multiple lines
        Posted  
        
            by Ilya
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ilya
        
        
        
        Published on 2009-04-28T11:01:50Z
        Indexed on 
            2010/06/15
            23:12 UTC
        
        
        Read the original article
        Hit count: 213
        
objective-c
Hi,
I have a pretty long sqlite query:
const char *sql_query = "SELECT statuses.word_id FROM lang1_words, statuses WHERE statuses.word_id = lang1_words.word_id ORDER BY lang1_words.word ASC";
How can I break it in a number of lines to make it easier to read? If I do the following:
const char *sql_query = "SELECT word_id
                        FROM table1, table2
                        WHERE table2.word_id = table1.word_id
                        ORDER BY table1.word ASC";
I am getting a error.
Is there a way to write queries in multiple lines?
Thank you.
© Stack Overflow or respective owner