Skip to content

Instantly share code, notes, and snippets.

@suntong
suntong / SQL Standard Set Operations: MS SQL Server vs MySQL.md
Last active July 24, 2025 21:40
SQL Standard Set Operations: MS SQL Server vs MySQL

1. SQL Standard Set Operations: MS SQL Server vs MySQL, by GPT

SQL supports set operations to combine results from multiple SELECT queries. Here’s a comparison of MS SQL Server and MySQL regarding these operations.


1. MS SQL Server

Supported set operations:

@suntong
suntong / 01-gpt.md
Created July 23, 2025 23:18
MySQL SQL Syntax Quick Reference

MySQL SQL Syntax Quick Reference

Database Operations

-- Create a database
CREATE DATABASE dbname;

-- Use a database
USE dbname;
FieldList:
FieldDefinition:
- FieldName: "ClientCode"
FieldType: "String"
FieldDescription: "The unique VETtrak code of the client, up to 10 characters"
MaximumLength: "10"
IsUpdateable: "true"
- FieldName: "Title"
FieldType: "String"
FieldDescription: "The title of the client (Mr, Mrs, Miss, Ms, Dr etc)"
package main
import (
"encoding/csv"
"fmt"
"io"
"log"
"os"
"regexp"
"strconv"
@suntong
suntong / archive.md
Last active December 22, 2024 07:46
gistpost test update
abcd

@suntong
suntong / Checklist.md
Last active September 15, 2024 15:53
  • Project Planning
    • Define project goals
    • Identify stakeholders
    • Create project timeline
  • Development
    • Develop front-end
    • Develop back-end
    • Integrate with API
@suntong
suntong / archive.md
Last active September 3, 2024 18:49
gistpost test update
abcd

@suntong
suntong / archive.md
Last active September 2, 2024 16:11
gistpost test update
abcd

@suntong
suntong / create.go
Last active September 2, 2024 16:13
gistpost create
////////////////////////////////////////////////////////////////////////////
// Program: gistpost
// Purpose: GH gist post/update tool
// Authors: Tong Sun (c) 2024-2024, All rights reserved
////////////////////////////////////////////////////////////////////////////
package main
import (
"bytes"
@suntong
suntong / create.go
Created September 2, 2024 15:08
gistpost create
////////////////////////////////////////////////////////////////////////////
// Program: gistpost
// Purpose: GH gist post/update tool
// Authors: Tong Sun (c) 2024-2024, All rights reserved
////////////////////////////////////////////////////////////////////////////
package main
import (
"bytes"