内蒙古阴山脚下的菜鸟求解决简单问题
我的数据库为
DateTime myTT = DateTime.Now.AddDays(0);
myTT = Convert.ToDateTime(myTT.ToShortDateString() + " " +"0" + ":00");
string strCom = "SELECT * FROM " + "HC3601"+" where TT>='" + myTT + "'";
这一行我想要只保留 time和number和name 其他都不要不知道该咋写?求高手给写下
------解决方案--------------------string strCom = "SELECT [time],[number],[name] FROM " + "HC3601"+" where TT>='" + myTT + "'";
建议楼主不要用sql server的保留字了,如:name等等