Mean Date Time for Job Scheduling on Oracle

Thursday, September 15th, 2011

นี่เป็นแค่ตัวอย่างการตั้งเวลาให้ JOB ทำงาน และนำไปตอยอดในการตั้งเวลานอกเหนือจากตัวอย่างครับ Date / Time Math Time Description SYSDATE – 7/24; Past 7 hours – ผ่านมา 7 ชั่วโมง SYSDATE – 7; Past 7 days – ผ่านมา 7 วัน SYSDATE – 7/1440; Past 7 minutes – ผ่านมา 7 นาที SYSDATE + 7/24 13/24 7 hours – 7 ชั่วโมง 13 hours – 13 ชั่วโมง 1/24/60/60 […]

การสร้าง sequence ใน MySQL

Wednesday, June 15th, 2011

บางครั้งทำงานใน MySQL แต่ติดการใช้ Sequence แบบใน Oracle ซะแล้ว ก็เลยหาวิธีใช้ ปรากฏว่าพริกแพลงได้ตามนี้ครับ 1. สร้าง Table สำหรับใช้เป็นที่เก็บ sequence 1 2 3 4 5 CREATE TABLE `agt_sequence` ( `seq_name` varchar(64) PRIMARY KEY , `seq_val` bigint(20) UNSIGNED NOT NULL , PRIMARY KEY (`seq_name`) )CREATE TABLE `agt_sequence` ( `seq_name` varchar(64) PRIMARY KEY , `seq_val` bigint(20) UNSIGNED NOT NULL , PRIMARY KEY (`seq_name`) […]

toad not connect to windows 7 64 bit

Saturday, March 19th, 2011

ปัญหาคือลง Windows 7 Pro 64 bit แล้วไม่สามารถใช้ toad connect Oracle ได้ ทั้งที่ลองเทสผ่าน PL/SQL ผ่าน Problem: 1 2 3 4 5 6 Cause: 64-bit Microsoft OS’s install 32-bit applications into the following location "C:\Program Files (x86)\…" rather than the typical location of   "C:\Program Files\…" This causes an existing networking bug to occur where the networking […]