Skip to content

DELETE By Procedure With String Input – Oracle

I am writing a procedure to delete some records of z_names table by IDs from the input as string (and I need to seprate them by special character (comma ,)). Sample Input: ‘1,4’ z_names table: ID NAME 1 jim 2 john 3 jack 4 alex After running this procedure, the record with ID 1 and 4 (jim and alex…

how can i loop insert query?

I have a problem like this: I need to optimize the application, with db (postgreSQL), the table looks like this: I have more than a thousand such voters, and I need to put all of them in the database, but among them there are several duplicates that could vote several times (from 2 to infinity), and I need to…

SQL SELECT two specific names from table not working

Name UID Late Tin ABC 0 Bob ABC 0 SELECT * FROM `logs` WHERE Name=’Tin’ AND Name=’Feryal’ This query returns nothing for me and only works when I want one name. I could use the SELECT * but for …

Importing JSON data to SQL Server

Sample data looks like this: { “_id”: { “$oid”: “5ff1e194b6a9d73a3a9f1052” }, “active”: true, “createdDate”: { “$date”: …