Похожие чаты

Hello, I am trying to write better SQL. I am

currently inserting data with a loop in perl into psql database and i would like to do it in one transaction...

I select one row of ids and i need to put it into other table like VALUES (12345, ?) where ? is the id i get from the SELECT. Thanks

2 ответов

8 просмотров

INSERT INTO table SELECT ... FROM otherTable

klimi- Автор вопроса
Thomas
INSERT INTO table SELECT ... FROM otherTable

ah thanks, i found out i can use constant tables for this

Похожие вопросы

Обсуждают сегодня

А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
Гайз, кто-нибудь пробовал запустить probe-rs под камень, которого нет в probe-rs? Мб есть какой-нибудь пример у кого... Через target-gen попробовал сгенерировать chip-descript...
Максим Смирнов
1
isn't utxo commitements pretty close though if someone wanted to get it over the finish line? my understanding is that most of the ground work was already down by verde
Luke High - Rabbi Of Bcash High Rabbi Of Bcash
23
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
35
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
is the buyback program live and at what prices are the purchases fixed? excuse me for the bland PA question, sophisticated defi people keke
Imnothere
20
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Чем оно проблема?
Nikita Uzumaki
21
@samkazemian - couple questions: Update on frxBTC? - This would do well with the current influx of institutional investment entering the space Update on future veFXS streams...
Costi
16
Карта сайта