dir.by  
Поиск >>

Компьютер, программы
→
PostgreSQL server (database) and pgAdmin (program for working with PostgreSQL server). Works on different platforms: Unix, Windows
 Добавляем auto increment когда колонка уже создана(PostgreSQL запросы) 
посмотрели 5059 раз
обновлено: 28 September 2021
CREATE SEQUENCE public.my_book_seq;

SELECT setval('public.my_book_seq', (SELECT max(id) FROM public.book));

ALTER TABLE public.book ALTER COLUMN id SET DEFAULT nextval('public.my_book_seq'::regclass);
 
← Previous topic
Create a C# console application to connect to the PostgreSQL server and write an SQL query to get the data. We receive the data in the form of json
 
Next topic →
Changing the column type from boolean to bit(1) | PostgreSQL queries
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

Новость "Черная пятница" Dreame в Беларуси – две недели скидок до 3400 рублей
 
PostgreSQL server
• What is a PostgreSQL server database?
• Download and install a PostgreSQL server (database) on Windows
pgAdmin program for working with PostgreSQL server (working on Windows)
• Download and install pgAdmin (a program for working with PostgreSQL) | Windows
• Open pgAdmin and connect to a remote PostgreSQL server
• Open pgAdmin and write an SQL query to fetch data from the PostgreSQL server
Creating tables
• Create the "city" table (using pgAdmin, PostgreSQL server)
• Create the "person" table and link it to the "city" table (using pgAdmin, a PostgreSQL server)
Adding data to tables
• Add data to the "city" table (using pgAdmin, PostgreSQL server)
• Add data to the "person" table (using pgAdmin, PostgreSQL server)
C# data retrieval application
• Create a C# console application to connect to the PostgreSQL server and write an SQL query to get the data
• Create a C# console application to connect to the PostgreSQL server and write an SQL query to get the data. We receive the data in the form of json
PostgreSQL queries
• Add auto increment when the column is already created (PostgreSQL queries)
• Changing the column type from boolean to bit(1) | PostgreSQL queries
• Changing the column type from bit(1) to boolean | PostgreSQL queries

  Ваши вопросы присылайте по почте: info@dir.by