Skip to content

Converting an Oracle date (stored as a number) in a SQL OPENQUERY

I am trying to create a number of stored procedures in SQL accessing an Oracle database. All dates in Oracle are stored as a 10 digit number which is causing some confusion. I have designed some dynamic SQL which allows us to run an OPENQUERY to pick out parameters however what I want to be able to do is use

How to compare time in mysql

I have a column of Time data type in mysql. I want to compare the time with a time string but don’t know how to compare it. e.g., I want to know that some specific time is greater than 10:30:00. How …

Generate range of numbers between two numbers

I could use some help with a query to expand a CSV I’m working with, but I don’t know the best way to handle the query. My data looks like this: ID-Begin | ID-End | Color | Dwelling —————–…

Insert a list using dapper.NET C#

I’d like to insert a list of objects in an SQL table. I know this question here but I don’t understand. Here is my class : I’d like to know how could I insert my list using Dapper, I don’t want to iterate on the list and save them one by one, I would like to insert all of them