POSTGRESQL Articles
- 
                    postgresql  get the nth element from comma separated list
                     Murugan Andezuthu Dharmaratnam  | Murugan Andezuthu Dharmaratnam  | 25 February 2022 | 25 February 2022 | 2417 2417how 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 | 3828 3828Postgresql 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 | 2607 2607when 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 | 3188 3188How 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 | 2632 2632PostgreSQL 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 | 2593 2593sample 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 | 3327 3327You 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 | 1698 1698How 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 | 2759 2759how 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 | 3582 3582Function 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 | 2844 2844here is a sample code to insert data into a table in postgresql using cursor. … CONTINUE READING 
