9 lines
140 B
Bash
9 lines
140 B
Bash
#!/bin/bash
|
|
|
|
# columns(table)
|
|
columns() {
|
|
psql -Atc 'SELECT column_name
|
|
FROM information_schema.columns
|
|
WHERE table_name = '"${1};"
|
|
}
|