当前位置:编程学习 > C#/ASP.NET >>

图片已上传



少了00000017  在我不知道少了哪个的时候我怎样找出来???
--------------------编程问答-------------------- 谁知道 谢谢了 我刚才发的表达有点问题 --------------------编程问答-------------------- 谢谢了 --------------------编程问答-------------------- 没有一个人愿意帮助我么 --------------------编程问答-------------------- 我只会遍历,当然可以采用一些优化,比如二分法 --------------------编程问答-------------------- 谁帮助我一下吧  谢谢了 --------------------编程问答-------------------- 你是求SQL吗?
一句的写法类似这样写:
select * from t where id not in 
select t1.id from t t1 inner join t t2 on t1.no=t2.no-1
也可以排完序以后,按顺序遍历下。 --------------------编程问答-------------------- 谁帮助我一下吧 谢谢了 --------------------编程问答--------------------

declare @max int
select @max=cast(MAX(字段) as int) from 表
declare @min int
select @min=cast(MIN(字段) as int) from 表
create table temp(code int)
while(@min<=@max)
begin
insert into temp values(@min)
set @min=@min+1
end
select * from temp where code not in (select CAST(字段as int) from 表)
drop table temp
--------------------编程问答--------------------
引用 8 楼 ojlovecd 的回复:
SQL code

declare @max int
select @max=cast(MAX(字段) as int) from 表
declare @min int
select @min=cast(MIN(字段) as int) from 表
create table temp(code int)
while(@min<=@max)
begin
    insert into……

谢谢 --------------------编程问答--------------------
引用 8 楼 ojlovecd 的回复:
SQL code

declare @max int
select @max=cast(MAX(字段) as int) from 表
declare @min int
select @min=cast(MIN(字段) as int) from 表
create table temp(code int)
while(@min<=@max)
begin
    insert into……

我如何把这个代码加到C#程序中? --------------------编程问答--------------------
引用 10 楼 lenovo345 的回复:
我如何把这个代码加到C#程序中?

加到C#程序中是什么意思? --------------------编程问答--------------------
引用 11 楼 ojlovecd 的回复:
引用 10 楼 lenovo345 的回复:

我如何把这个代码加到C#程序中?

加到C#程序中是什么意思?

您这个是存储过程? --------------------编程问答--------------------
引用 12 楼 lenovo345 的回复:
引用 11 楼 ojlovecd 的回复:
引用 10 楼 lenovo345 的回复:

我如何把这个代码加到C#程序中?

加到C#程序中是什么意思?

您这个是存储过程?

不是存储过程,就是普通的t-sql语句
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,