c#開發(fā)cast( (case when b.pbproject_ID is null then 1 else 0 end) as bit ) as
c#開發(fā)cast( (case when b.pbproject_ID is null then 1 else 0 end) as bit ) as
if (Convert.ToBoolean(this.grvQuery.GetDataRow(i)["xz"]) == true)
{
selected = true;
}
上面那個(gè)是條件
if (Convert.ToBoolean(this.grvQuery.GetDataRow(i)["xz"]) == true)
{
selected = true;
}
上面那個(gè)是條件
其他人氣:197 ℃時(shí)間:2020-04-10 03:43:08
優(yōu)質(zhì)解答
cast( (case when b.pbproject_ID is null then 1 else 0 end) as bit ) as xz這個(gè)是sql語(yǔ)句吧,cast()是用于轉(zhuǎn)換數(shù)據(jù)類型的 如case('222' as int) 把字符串轉(zhuǎn)換成整型case when then是條件判斷整句的意思就是:cas...我主要是這句搞不懂this.grvQuery.GetDataRow(i)["xz"]這個(gè)是得到那一行 后面又跟個(gè)前面?zhèn)鬟^來的xz是什么意思this.grvQuery.GetDataRow(i)["xz"]沒有指定是哪一行,是當(dāng)?shù)趇行xz這一列的值轉(zhuǎn)換成布爾類型等于true時(shí)就執(zhí)行{……}里的代碼,不知道你前面的代碼是怎么樣,按意思就是i的值是會(huì)變的,只要當(dāng)i行xz這一列的值符合判斷條件就執(zhí)行
我來回答
類似推薦
- switch(a*a+b*b); { case 3 :case 1 :y=a+b; break; case 0 :y=b-a; break; }
- 下列程序的輸入結(jié)果是 main() {int x=1,a=0,b=0; switch(x){case 0:b++; case 1:a++; case 2:a++;b++; }
- aluminum die cast case 應(yīng)該怎么翻譯比較好,主要是我理解不了DIE CAST
- #includemain() { int x=1,y=0,a=0,b=0; switch(x) { case 1: switch(y) { case 0: a++; break
- 變成復(fù)數(shù)形式 It is a green dress.My blouse is new.I’m a teacher.This is you case.
- 判斷一個(gè)數(shù)是質(zhì)數(shù)還是合數(shù),要看它什么
- 酬樂天揚(yáng)州初逢席上見贈(zèng)中寄希望于未來的哲理詩(shī)句是什么
- Whether i go or not,we are the best
- Are ther any books in the bag?Yes,there is__________. A.it B. one C. any D. some
- it`s cool here because wind can blows in ( ) the two windows
- 如圖,是一個(gè)幾何體的三視圖,那么這個(gè)幾何體是_.
- ”秋處露秋寒霜降”是二十四節(jié)氣歌中的一句,其中第二個(gè)”秋”指的是
猜你喜歡
- 1即是兩大洋分界線又是兩大洲分界線的海峽是哪個(gè)?
- 2甲數(shù)除以乙數(shù),商是5分之2,甲數(shù)與乙數(shù)的和是21,甲數(shù)是(),乙數(shù)是()
- 3已知f(x)=ax2+bx(a≠0)滿足f(x-1)=f(3-x)且方程f(x)=2x有兩個(gè)等根,求f(x)的解析式.
- 4請(qǐng)問有關(guān)趙州橋的傳說有哪些?
- 5關(guān)于interest 的英語(yǔ)改錯(cuò)
- 6God made the integers; all else is the work of man什么意思
- 7方程0.02分之0.2x-0.2 -0.5分之x+1=3的解是()
- 8多少硫酸和多少氯化鉀高溫后反映出多少硫酸鉀和多少鹽酸.
- 9in my home all the chairs are made of b_____
- 10雷諾實(shí)驗(yàn)中如何正確設(shè)置高位水槽
- 11一只掛鐘的時(shí)針長(zhǎng)10厘米 急!
- 12they want to buy some fruit .對(duì)劃線部分提問(some fr