---
id: columns
title: "Columns"
slug: columns
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/postgres.yml
---

import Tabs from '@theme/Tabs';
import TabsPanel from '@theme/TabsPanel';

Creating columns.


<Tabs
  defaultActiveId="sql"
  groupId="reference/postgres"
  values={[{ label: 'SQL', value: 'sql' }]}>

<TabsPanel id="sql" label="sql">

```sql
create table table_name (
  id integer primary key,
  data jsonb,
  name text
);
```


</TabsPanel>

</Tabs>

















## Examples

### During table creation



<Tabs
  defaultActiveId="sql"
  groupId="reference/postgres"
  values={[{ label: 'SQL', value: 'sql' }]}>

<TabsPanel id="sql" label="sql">

```sql
create table table_name (
  id integer primary key,
  data jsonb,
  name text
);
```


</TabsPanel>

</Tabs>

### Create column



<Tabs
  defaultActiveId="sql"
  groupId="reference/postgres"
  values={[{ label: 'SQL', value: 'sql' }]}>

<TabsPanel id="sql" label="sql">

```sql
alter table new_table
add new_column text;
```


</TabsPanel>

</Tabs>