VK
Size: a a a
VK
RH
I
0
CREATE PROCEDURE insertAutomobile
(
_CarID SERIAL PRIMARY KEY,
_mark text,
_cost real,
_costOfHair real,
_CarType text
)
LANGUAGE SQL
AS $$
INSERT INTO automobiles VALUES(_CarID, _mark, _cost, _costOfHair, _CarType);
$$;
ОШИБКА: ошибка синтаксиса (примерное положение: "PROCEDURE")0
IC
0
IC
СЗ

_
_
INSERT INTO users (birthday, age) VALUES ('1234-56-78', age(timestamp birthday);
если birthday до INSERT был NULL или например был создан только что, и даже более NOT NULLA
_
_
_
A
insert into ...?
Select
t.birth_date, datediff(day, t.birth_date, getdate()) as age
from (
select convert(date, '19920101', 112) as birth_date
) t
_
_
A
RH