博文

目前显示的是 一月, 2019的博文

Comparison of C Sharp and Java

If you only take care about technical details, please read directly: https://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java. The following contents based my learning curve and work background show the difference between them.  I am a software engineer, not research and development(R & D) personnel ( the former is like a construction worker ). The technical support documents and tools are important for software projects and application development. The developer and after-sales service all need the technical support documents; Good tools are sure be better for working performance efficiency and construction quality. For the technical support documents, intuitive feelings are Microsoft's better than Oracl's.  Microsoft's documents is easy to read and to get started. The implementation in documents is described in the table below. Microsoft Oracle (Sun) Who (is the reader) Grade 6 must be a bachelor's degree or more

MySQL tips

1. no sub select ok: select t1.* from t1 join t2 on t1.id = t2.id no: select * from t1 where id (select id from t2 where name='anyname') 2. no function ok: select * from t1 where d>='2019-01-11' no: select * from t1 where YEAR(d) >= 2019 3.in better than or ok: select * from t where col1 in (30,10,20) no: select * from t where col1 =30 or col1=10 or col1=20 4.like no double %% ok: select * from t where name like 'n%' no: select * from t where name like '%n%' 5.select * from t where 1=1 limit 10; 6. select * from t where id=200 7.select  id,count(*) from t group by id ORDER BY NULL; 8. order by ok: select * from t where id>=ceil(RAND()*1000) limit 6; no: select * from t where 1=1 order by RAND() limit 6; 9. select count(*) from t left join t2 on t.id=t2.id 10.insert into t (id,name) values (1,'n1'),(2,'n2'),(3,'n3') CONVERT(char(10), [created], 120) = CONVERT(char(10), GETUTCDATE(), 120) mysql> use