Navigation
- FAQ Home
- All categories
- About Webyog support and about this FAQ
- About the SQLyog program

- Connection issues

- Using the GUI
- Managing your MySQL Database Systems
- Database Schema Synchronization
- MySQL DATA synchronization
- SQL Scheduler and Reporting Tool
- Importing external data
- Backup/Restore
- SQLyog Job Agent (SJA)

- Working with Views, Stored Procedures and Triggers
- Character Set and Localization Issues
- MySQL bugs that affect SQLyog
- Questions on Open Source and Compiling
- Sitemap
Most popular FAQs 
- I get error 1130 "Host is not allowed to ... (169366 views)
- Error no. 2003: Can't connect... (86310 views)
- SQLyog Version History (63975 views)
- Error no. 1045: "Connection denied..." (61371 views)
- Error no. 1251: "Client does not support authentication..." (58326 views)
- Error No. 2005: Unknown MySQL server host... (50214 views)
- What is HTTP-tunneling? (42290 views)
- What Is SSH and SSH-tunneling? (38087 views)
- Can I use SQLyog with the WINE Windows emulator ... (34956 views)
- Why are Stored Procedures not created when I import ... (34273 views)
Latest FAQs 
- SQLyog Version History (2012-01-26 08:20)
- SQLyog is a client for the MySQL server - ... (2011-11-04 04:48)
- I get error 1130 "Host is not allowed to ... (2011-11-01 05:21)
- Problems on Ubuntu 11.x (2011-10-29 13:02)
- Problems creating a functional DSN on 64 bit Windows. ... (2011-09-15 14:34)
Sticky FAQs
Managing your MySQL Database Systems » Data Types and Storage Engines
How does SQLyog handle TIMESTAMPS defined as '... on UPDATE CURRENT_TIMESTAMP' ?
You can read about SQLyog 'smart' KEYWORD handling introduced with SQLyog 5.1 here.
When updating any TIMESTAMP defined with
'... on UPDATE CURRENT_TIMESTAMP'
SQLyog will not include that column in the update statement, and the server will replace the old TIMESTAMP with a new CURRENT_TIMESTAMP. This is the basic idea with the '... on update ..' clause and is fully supported by SQLyog.
To create a TIMESTAMP default CURRENT_TIMESTAMP not NULL on UPDATE CURRENT_TIMESTAMP with MySQL >= 4.1 (and if this TIMESTAMP is the first TIMESTAMP of the table) you will only need to check the 'Not Null' checkbox from SQLyog GUI's (CREATE TABLE, ALTER TABLE). The first TIMESTAMP in a table defined NOT NULL will be created as TIMESTAMP default CURRENT_TIMESTAMP not NULL on UPDATE CURRENT_TIMESTAMP by the MySQL server then. SQLyog does not 'override' this in any way.
Tags: -
Related entries:
- Do I need PHP to use SQLyog with MySQL?
- SQLyog gives you the most options for connecting to MySQL
- Welcome to the SQLyog FAQ
- Installation and upgrading
- Buying and Licensing SQLyog
Last update: 2006-03-08 16:58
Author: Peter Laursen
Revision: 1.0
You can comment this FAQ