POSTGRESQL Articles
- 
                    postgresql  get the nth element from comma separated list
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 25 February 2022 | 25 February 2022 | 2413 2413how to get the nth element from comma separated list in postgressql … CONTINUE READING 
- 
                    postgresql update table from another table with columns from second table
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 03 February 2022 | 03 February 2022 | 3827 3827Postgresql update table a from another table b with columns from table b where table a column matches table b column. This can be done using an update from select query … CONTINUE READING 
- 
                    PostgreSQL update from select inline query deadlock
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 03 February 2022 | 03 February 2022 | 2605 2605when I call an update from select with join and where condition I was getting a deadlock. The solution is shown below. … CONTINUE READING 
- 
                    PostgreSQL release lock on table
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 02 February 2022 | 02 February 2022 | 3183 3183How to find and release lock on a PostgreSQL table … CONTINUE READING 
- 
                    postgresql rows to comma separated string
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 01 February 2022 | 01 February 2022 | 2629 2629PostgreSQL function to return comma delimited string from rows. In this example, I have a state table, and the function returns comma separated state names … CONTINUE READING 
- 
                    postgresql create rows for date from start date to end date
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 01 February 2022 | 01 February 2022 | 2590 2590sample query PostgreSQL create rows for date from start date to end date … CONTINUE READING 
- 
                    postgresql function to get number of days in a month
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 28 January 2022 | 28 January 2022 | 3324 3324You can call no direct function to get the number of days in a month from a date in PostgreSQL. In MSSQL, it's straightforward; you can use the day and eomonth function to get the number of days, but we don't have the eomonth function in PostgreSQL. So here is a function I have written to get the number of data in a month given a date. … CONTINUE READING 
- 
                    postgresql update json field
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 11 October 2021 | 11 October 2021 | 1695 1695How do I modify fields inside the new PostgreSQL JSON datatype? … CONTINUE READING 
- 
                    postgresql month name from date
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 22 September 2021 | 22 September 2021 | 2752 2752how to get month name from date in postgresql … CONTINUE READING 
- 
                    Function uuid_generate_v4() does not exist postgresql
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 22 September 2021 | 22 September 2021 | 3578 3578Function uuid_generate_v4() does not exist postgresql … CONTINUE READING 
- 
                    cursor in postgresql example
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 22 September 2021 | 22 September 2021 | 2840 2840here is a sample code to insert data into a table in postgresql using cursor. … CONTINUE READING 
