用notepad++编写好一个.sql脚本文件: drop database if exists library; create database library default character set utf8; use library; create table user( id ) not null auto_increment, name ) default null, password ) default null, primary key (id) )engine=innodb
前言 最近项目用到了access,是的就是access,工作在桌面型的小数据库应用还是会用到的,如果你确定永远不会遇到access的操作,请忽略此篇文章 1.vs配置access 既然是数据库,就少不了增删改查.不像mssql那样access没有存储过程(但可以进行宏操作),我们一般都是写T-SQL操作. 1.1.附上access的db操作辅助类. using System; using System.Collections.Generic; using System.Linq; using S
EF to sql string sql = "select T_Task.BSID,T_Task.CloseDate,T_Task.CompleteDate,T_Task.CloseUser,T_Task.TaskID,T_BaseStation.Name from T_Task " + "inner join T_BaseStation on T_Task.BSID=T_BaseStation.BSID"+ " where " + sqlta