Skip to content

Best approach to adding WITH [NO] DATA option to CREATE TABLE AS? #893

Closed Answered by tobymao
treysp asked this question in Q&A
Discussion options

You must be logged in to vote

i guess the easiest way is in create table to match the sequence

self._match_text("WITH", "DATA")
self._match_text("WITH", "NO", "DATA")

and add "data": False to the Create expression.

data == None, show nothing
data = False = WITHNO DATA
data = True = WITH DATA

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobymao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants