File: 402_alter_table.sql

package info (click to toggle)
sqlfmt 0.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,580 kB
  • sloc: python: 10,007; sql: 5,626; makefile: 39
file content (23 lines) | stat: -rw-r--r-- 432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
alter table project_id.dataset.my_table
set options (
    -- sample comment
    description = 'This is a table with a description'
);

create or replace table project_id.dataset.my_table as
select
    -- sample comment
    col1, col2, col3,
from my_dataset.my_table
;

create or replace table project_id.dataset.my_table as
select
    /* 
    sample
    multiline
    comment
    */
    col1, col2, col3,
from my_dataset.my_table
;