Posts

PostgreSQL ON CONFLICT Statement

PostgreSQL ON CONFLICT Statement - Explained PostgreSQL ON CONFLICT Statement - Explained ๐Ÿ“˜ Introduction to ON CONFLICT Statement In PostgreSQL, ON CONFLICT provides a powerful mechanism to deal with data clashes during INSERT operations. When inserting into a table that contains a UNIQUE constraint or index, you can define how the database should react—either by updating the existing record or ignoring the new one. ๐Ÿงช Syntax Overview INSERT INTO table_name (column1, column2, ...) VALUES (value1, value2, ...) ON CONFLICT (conflict_target) DO UPDATE SET column1 = value1, column2 = value2, ...; conflict_target: typically the column(s) with a UNIQUE constraint (e.g., employee_id) DO UPDATE: specifies what should be updated DO NOTHING: skips the insertion if conflict occurs ...

Night Park Putrajaya - Secret Garden

Image
Putrajaya Secret Garden – A Magical Night Park Experience Looking for a place to hang out at night? Whether it's an after-dinner stroll, a cozy date night, or weekend outing with the family, the Putrajaya Secret Garden offers a magical experience. Free to enter and lit with dreamlike lights, it transforms nighttime wanderings into peaceful escapes. This Putrajaya Night Park (Secret Garden) is perfect for couples, families, and photography lovers alike. Avatar-style “Tree of Souls” lighting sets a magical tone here. The garden glows with color: lights drape over trees, pillars shimmer, bushes pulse in soft hues. As the skies darken around 7pm, the pathways light up like something out of a fairytale. It’s peaceful, never too crowded, and the perfect blend of relaxation and visual delight. ๐Ÿ“ Location & Access ...

Mysql Merge

Image
MySQL MERGE Concept & Alternatives Explained MySQL MERGE Concept & Alternatives MySQL MERGE is not directly supported as a single SQL command like in some other database systems (e.g. SQL Server or Oracle), but the concept can be implemented using a combination of INSERT , UPDATE , and DELETE statements. The MERGE approach is helpful for syncing two tables where data may need to be inserted, updated, or removed depending on conditions. When implemented manually, this requires crafting multiple SQL queries to simulate the behavior. Users should have SELECT, INSERT, DELETE , and UPDATE privileges on both tables used in the MERGE operation. ๐Ÿ”ง Three Logical Cases in a MERGE Operation Case 1 – INSERT If a row exists in the source table but not in the target table, use INSERT to add it to the target. Case 2 – DELETE If a row exists in the tar...

Nasi Lemak Spicy Sambal recipe -Simple Cooking

Nasi Lemak Spicy Sambal recipe - Simple Cooking How to Cook Nasi lemak and Spicy Sambal - Malaysian (Simple Recipe) Ingredients for the recipe: Visit my Youtube Channel Link :  Aki13promy - YouTube Visit my Dailymotion Channel Link :  Aki13promy - Dailymotion Check out the Video :

Hari Raya 2022

Hari Raya Aidilfitri 2022 – A Surprise Celebration Hari Raya Aidilfitri 2022 – Celebration Recap ๐ŸŒ™ After two long years of distancing and quiet festivities, Hari Raya Aidilfitri 2022 in Malaysia was a celebration like no other. The official announcement stunned the nation—it was set a day earlier than expected, on May 2 instead of May 3. Social media exploded as families rushed to prepare last-minute dishes, prayer outfits, and travel plans. The streets came alive, homes gleamed with lanterns and decor, and the joy of returning to tradition could be felt in every smile and salam exchanged. For many, this marked the first real balik kampung after lockdowns, and emotions ran high. ✨ What Made This Raya Truly Memorable? ๐Ÿฅ˜ Grand feasts of rendang, satay, ketupat, and lemang united families ๐Ÿ‘— Baju Raya fashion made a bold return in vibrant colo...

Spicy Prawn Masala | Prawn Masala Curry Recipe | Shrimp Masala

Spicy Prawn Masala Recipe ๐ŸŒถ️ Introduction: A Fiery Seafood Favourite Craving something bold and brimming with spice? This Spicy Prawn Masala is a soul-satisfying dish that brings the heat and heart of South Indian kitchens right to your table. Inspired by weekend market hauls and cherished family memories, it’s the kind of recipe that turns ordinary prawns into a culinary celebration. Whether paired with fluffy basmati rice or soft naan, this dish is bound to impress seafood lovers and spice enthusiasts alike. ๐Ÿง„ Ingredients 500g fresh prawns, cleaned and deveined 2 medium onions, finely chopped 2 tomatoes, pureed 1 tbsp ginger-garlic paste 2 green chillies, slit 1 tsp turmeric powder 1½ tsp red chilli powder 1 tsp coriander powder ½ tsp garam masala Salt to taste Fresh coriander leaves for garnish 2 tbsp oil ๐Ÿณ Preparation Heat oil in a pan and sautรฉ the onion...