Drop Streams
You can drop a stream with:
Code Block |
---|
theme | Eclipse |
---|
language | sql |
---|
linenumbers | true |
---|
|
DROP STREAM category |
Since this statement would return an error if the stream "category" does not exist, you can add "IF EXISTS" to avoid this error (it checks, if the stream is existing before running the drop)
Code Block |
---|
theme | Eclipse |
---|
language | sql |
---|
linenumbers | true |
---|
|
DROP STREAM category IF EXISTS |
Drop Sinks
You can drop a sink with:
Code Block |
---|
theme | Eclipse |
---|
language | sql |
---|
linenumbers | true |
---|
|
DROP SINK category |
Since this statement would return an error if the stream "category" does not exist, you can add "IF EXISTS" to avoid this error (it checks, if the sink is existing before running the drop)
Code Block |
---|
theme | Eclipse |
---|
language | sql |
---|
linenumbers | true |
---|
|
DROP SINK category IF EXISTS |