SQL语句中如何将查询出来的表创建自动标识列

"select id=(select count(*) from abc where tableno<=abc.tableno),tableno,tablename,tabletype from (select distinct tableno,tablename,tabletype into abc from tablesumdemo where usersname='" + Session["UserID"].ToString() + "')";
提示报错:找不到FROM关键字,是怎么回事,哪些大神知道哪里出问题了

where tableno<=abc.tableno),tableno,tablename,tabletype from

这个where条件出错了,没有这么写的
温馨提示:答案为网友推荐,仅供参考
相似回答