Type determination
java interface query:
interfaceDemo instanceof InterfaceDemo
subClassInstance instanceof ParentClass
python
isinstance
golang interface query:
value, ok := element.(T) element is interface var, T is base type
switch value := element.(type)继续阅读 »
Data structure stores a sequence of items in a list
|List | Java | Python | Go |
|:------------|:---------------------------------|:----------|:--------------------|
|type | List, Arraylist, LinkedList | list | List |
|package | im继续阅读 »
**对代码不满足,是任何真正有天才的程序员的根本特征。**
Value '0000-00-00' can not be represented as java.sql.Timestamp
在查询MySql数据库某表的timestamp列的时候,发现此异常,问题来源表述如下
1. 先创建一个测试表
sql
create table test.mytest(
id int PRIMARY KEY AUTO_INCREMENT ,
createtime timestamp not null default current_timestamp , --创建时间
updatetime timestamp not null , --更新时继续阅读 »