DELETE FROM Bus_TerminalMessage_Keywords WHERE Content IN (select Content from Bus_TerminalMessage_Keywords group by Content having count(Content) > 1) AND ID NOT IN (select min(Id) from Bus_TerminalMessage_Keywords group by Content having count(Cont
原来项目中oracle数据库一直是US7ASCII,我新项目对接的时候,查询以及插入中文,出现乱码问题. 暂时未能解决此问题,最终决定每次转码: 查询的时候: List<Record> list = Db.use("oracle").find("select * from order order by id desc"); for (Record record : list) { String str = record.getStr("depa
首先声明解决方法也是网上找来的,知识自己记下来以防以后用到. ubuntu版本是14.04使用apt-get命令安装mysql sudo apt-get install mysql-server 好了之后使用mysql -u root -p检查是否能正常启动 mysql -u root -p Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection Server version: -1ubun
using System; using System.Collections.Generic; using System.Text; using System.IO; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Collections; using System.Data; using System.Data.SqlClient; using Common; using System.Threading; nam
首先我将生成饼图的方法独立写成一个PieChar.java类,详细代码如下:(数据库需要自己建,如有需要的话) import java.io.IOException; import java.sql.SQLException; import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.data.general.DefaultPieDataset; public class Pi