ปกติถ้า Save As ใน Excel แล้วเลือก CSV (Comma delimited) (*.csv) จะได้ข้อมูลคั่นด้วย Comma
Continue readingMonthly Archives: May 2019
ข้อมูลชนิด DATE และ datetime
สร้างตาราง tbtest
create table tbtest ( id SERIAL PRIMARY KEY, firstname varchar(50) NOT NULL, date1 DATE, date3 datetime year to fraction(3), date5 datetime year to fraction(5), timestamp DATETIME YEAR TO FRACTION(5) DEFAULT SYSDATE YEAR TO FRACTION(5) );Continue reading
การ select, update blob ของ informix ด้วย c#
Note: เหมือนยังมี Error อยู่ ในบางกรณี ไม่แน่ใจว่า ผิดตรงไหน
update blob จากข้อมูลที่เก็บอยู่ใน textfile
- ถ้าใช้ sql ให้ดูที่ LOAD FROM File
- SQL + Informix: How do I add a blob when doing an insert? (Using the .NET (C#) SDK)
สร้างตารางทดสอบ
create table tbtest ( id SERIAL PRIMARY KEY, detail text, timestamp DATETIME YEAR TO FRACTION(5) DEFAULT SYSDATE YEAR TO FRACTION(5) );Continue reading
การ insert ข้อมูลลง informix
- การใส่ single quote
- การใส่ newline และ carriage returns
การสร้าง Azure AD B2C Tenant
- สร้าง Azure Active Directory B2C
- เปลี่ยน Directory ไปที่ Tenant
- สร้าง User ใน Tenant
เว็บแอพบน Azure App Service ให้ authen ด้วย Azure AD
- สร้าง Azure App Service
- กำหนดวิธี Authen เป็น Azure Active Directory
- สร้าง user Azure Active Directory
- อ่านค่า userid จาก .auth/me
ดู authentication tokens และ session cookies ของเว็บแอพบน Azure App Service ด้วย nodejs
- สร้าง Azure App Service
- กำหนดวิธี Deploy ของ App Service ให้เป็น Local Git
- clone ตัวอย่าง nodejs
- Authentication และดู Token
Deploy โปรเจ็กส์ที่มีอยู่แล้ว ขึ้น App Service ด้วย Local Git repository
- สร้าง Azure App Service
- กำหนดวิธี Deploy ของ App Service ให้เป็น Local Git
- Deploy ด้วย git command
การเรียก POST (async) แบบส่ง JSON ด้วย HttpClient
วิธีนี้นี้ดี แต่ใช้ใน Web Services ไม่ได้ ถ้าจะเรียกใน Web Services ดู การเรียก POST ด้วย WebClient
Continue readingการเรียก POST แบบส่ง key-value และแบบส่ง json ด้วย WebClient
- การเรียก POST แบบส่ง key-value
- การเรียก POST แบบส่ง json