from http://ondra.zizka.cz/stranky/programovani/java/index.texy
When working with MySQL over JDBC and the driver encounters a zero DATE, TIME, or DATETIME value (that is, e.g, ‚0000–00–00‘ for DATE), an exception is thrown:
java.sql.SQLException: Cannot convert value ’0000-00-00 00:00:00′ from column 4 to TIMESTAMP.
In this case, using SQL commands like
SET GLOBAL sql_mode = ‘NO_ZERO_DATE’;
does [...]
from http://blog.jamiedoris.com/geek/560/ MySQL: Get Next Auto_increment Thursday April 24th, 2003
** It is not recommended to use this method for generating foreign keys for lookups. In a multiuser environment with simultaneous requests the results will be utterly useless and unreliable. OK? **
So I was working on the preview feature of [...]
select * from SYSOBJECTS where TYPE = ‘U’ order by NAME
equals to the one in mysql
show tables
Or we can use sp_help, for exmple:
exec sp_help database_name
refer to http://msdn.microsoft.com/en-us/library/aa933429.aspx
-
Articles
- October 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Calendar
May 2013 M T W T F S S « Oct 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
Meta