一定要查看好CSV字段结构是否和文件的表结构字段一致 load data local infile 'F:/MySqlData/test1.csv' --CSV文件存放路径 into table student--要将数据导入的表名 fields terminated by ',' optionally enclosed by '"' escaped by '"' lines terminated by '\r\n'; MariaDB [meng]> load data loca
1.扩展方法 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Linq.Expressions; using System.Reflection; namespace Utils { //http://stackoverflow.com/questions/567963/linq-expression-to-return-property-value
public class Test{ //中间变量 private String res = "0"; //方法 public int func(int i){ if(i>0){ int temp = i%10; res = res+String.valueOf(temp); func(i/10); } return Integer.valueOf(res); } public static void main(String[] args){ Test t=new Test();