ข้อคิดประจำวันนี้ (ดงมหากาฬเล่ม 3)
- เขาว่ากันว่าจูเลียส ซีชาร์ เป็นคนแรกที่คลอดโดยวิธีผ่าท้อง เขาก็เลยเรียกการทำคลอดวิธีนี้ว่า ซีซาเรี่ยน เซ็คชั่น (Caesarian Section)
Written by Komkid on August 20th, 2009 with no comments.
Read more articles on KomKid.
ข้อคิดจากเพชรพระอุมาวันที่ 7 (ดงมหากาฬเล่ม 2)
- เวลาที่มี สัตว์ใหญ่ หรือ คนใหญ่ ตาย มักจะมีฝนตก (ข้อนี้ยืนยันครับ เจอกับตัวบ่อย)
—————————————————–
ส่งท้ายวันนี้ด้วยบทเพลงครับ
จูบ… คุณคิดว่าไม่สำคัญ
จูบ… เบา ๆ เท่านั้น ทำให้ฉันสั่นไปถึงหัวใจ
Written by Komkid on August 18th, 2009 with no comments.
Read more articles on KomKid.
ความรู้จากเพชรพระอุมาวันที่ 6 (ดงมรณะเล่ม 1)
- ความเจ็บช้ำของคนอื่น ที่เราอาจมองว่าเป็นเรื่องเล็กน้อย ขำ ๆ ผ่านมานานแล้ว คงเอามาหยอกล้อเล่นได้ อาจทำร้ายจิดใจของเขาอย่างรุนแรง
- คิดให้ดีก่อนพูด คำพูดนั้น ก่อนพูดออกไปเราเป็นนายมัน แต่เมื่อได้พูดไปแล้ว มันจะเป็นนายของเราตลอดไป
Written by Komkid on August 18th, 2009 with no comments.
Read more articles on KomKid.
TRUNCATE TABLE name
vs
DELETE FROM TABLE name
TRUNCATE TABLE is functionally identical to DELETE statement with no WHERE clause: both remove all rows in the table. But TRUNCATE TABLE is faster and uses fewer system and transaction log resources than DELETE.
The DELETE statement removes rows one at a time and records an entry in the transaction log for each deleted row. TRUNCATE TABLE removes the data by deallocating the data pages used to store the table’s data, and only the page deallocations are recorded in the transaction log.
TRUNCATE TABLE removes all rows from a table, but the table structure and its columns, constraints, indexes and so on remain. The counter used by an identity for new rows is reset to the seed for the column. If you want to retain the identity counter, use DELETE instead. If you want to remove table definition and its data, use the DROP TABLE statement.
You cannot use TRUNCATE TABLE on a table referenced by a FOREIGN KEY constraint; instead, use DELETE statement without a WHERE clause. Because TRUNCATE TABLE is not logged, it cannot activate a trigger.
TRUNCATE TABLE may not be used on tables participating in an indexed view.
Written by Komkid on August 18th, 2009 with no comments.
Read more articles on Database.