Skip to content

Tag: sql

SQL: Convert bigint type to formatted date

I believe this is a simple question, but I’ve been searched around and got no satisfactory answer. Basically I have a Bigint object in MYSQL, I want to convert it to date format like 20201004, for example: I’ve tried But neither allow formatting, I hope to get the easiest and fastest conversion. A…

How to connect to a Azure SQL Server through Python

I’ve come across some trouble accessing my SQL Server through Python. I can get it going when my SQL Server is installed locally, but not when it is online. I have used the following code: Connection to SQL Server but then when I try and run: I get the error: InterfaceError: (‘IM002’, &#8216…

Update or add value with id

I am just learning SQLDelight and was hoping to find how to add an object with an ID if it doesn’t exist already if it does exist then update that current object with the given id. currently, I am …