C/obective-C에서 여러 줄에 걸쳐서 문자열을 쓰려면 어떻게 해야 될까요
조회수 2326회
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";
같이 엄청 긴 쿼리를
const char *sql_query = "SELECT word_id
FROM table1, table2
WHERE table2.word_id = table1.word_id
ORDER BY table1.word ASC";
로 쪼개고 싶습니다.
지금 코드는 에러가 뜨는데 문자열을 제일 쉽게 쪼갤 수 있는 방법을 알려주세요
댓글 입력