Mastering SQL: Creating Databases, Crafting Tables, and Perfecting Table Modification

preview_player
Показать описание
#postgresql #opensource #postgres
DDL: Data Definition Language
DDL to create database, table, user, schema and more

create database Smartcity;

create table landparcel(LandparcelID serial PRIMARY KEY,
AssetArea real,
LandUse varchar);

create table owner(
gid serial PRIMARY KEY,
Title varchar,
FirstName varchar,
LastName varchar);

alter table owner
add column city Varchar;

alter table owner
RENAME COLUMN city TO region;

ALTER TABLE owner
DROP COLUMN city;

drop table owner;
Рекомендации по теме
Комментарии
Автор

Many thanks for providing these helpful videos🙏🏽

amirrezashojaeinouri
Автор

Thanks a lot for this practical video👌🏻👏🏻

zahranik
visit shbcf.ru