第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請問下如何能把數(shù)據(jù)庫中的數(shù)據(jù)轉(zhuǎn)化成json格式然后在網(wǎng)頁中調(diào)用,不用php

請問下如何能把數(shù)據(jù)庫中的數(shù)據(jù)轉(zhuǎn)化成json格式然后在網(wǎng)頁中調(diào)用,不用php

查看完整描述

2 回答

已采納
?
慕勒0069038

TA貢獻143條經(jīng)驗 獲得超39個贊

public?String?resultSetToJson(ResultSet?rs)?throws?SQLException,JSONException??

{??

???//?json數(shù)組??

???JSONArray?array?=?new?JSONArray();??

????

???//?獲取列數(shù)??

???ResultSetMetaData?metaData?=?rs.getMetaData();??

???int?columnCount?=?metaData.getColumnCount();??

????

???//?遍歷ResultSet中的每條數(shù)據(jù)??

????while?(rs.next())?{??

????????JSONObject?jsonObj?=?new?JSONObject();??

?????????

????????//?遍歷每一列??

????????for?(int?i?=?1;?i?<=?columnCount;?i++)?{??

????????????String?columnName?=metaData.getColumnLabel(i);??

????????????String?value?=?rs.getString(columnName);??

????????????jsonObj.put(columnName,?value);??

????????}???

????????array.put(jsonObj);???

????}??

????

???return?array.toString();??

}??


查看完整回答
1 反對 回復(fù) 2017-04-17
?
慕瓜9220888

TA貢獻868條經(jīng)驗 獲得超0個贊

WFXAQRAOT

KPDRSPAUS

IPMTUVGYA

GIJLBTNPX

GKHUWDKXO

HMJTTKOMK

OHEQAXTZG

PBULHTKKE

WTMBDBKNY

NPERRUXDQ

VEWOGTMVY

XLHMEXPYC

FKWTFYRZG

RAKZYLHCS

QVSKXORCO

TXDZHGLLF

KLWIAQGHE

NLUGOUUYL

NVEGIVASP

OOBJBJSGG

MUDCLITWI

QTVSAHZCK

AIWMUUPMG

NWPVYXLEI

YONKARYIG

SAAQGGJLZ

VONWIVZSD

ZOYXLVUBS

TNCRZXXAF

SKEWLJHFD

OXDOWAWSF

RVXJVZKTX

RGCUAZFCC

VLBOGAADR

TJJCUGDDX

FBNMFPSFL

EQXFUAHPJ

ILAILIIQA

TWLHNHKPC

IXQMIKCDN

MKEMYEKCP

DJFCLJBRB

SIBSSPGNU

XZODDTNNO

HMBKCLCIT

JAQZRYCZF

RFBENUBZJ

POGGIIPWG

GCRASPTPJ

HFIXGAAHH

KZBAJADOY

LTMEARAQB

LQSIAOOVP

EVONQGNYB

IAFEXJAAK

YAHQZWJQP

JAJSVVMMD

CQFVXRYSC

QOXQJTCCT

YAJRURYIS

YELXDDMWG

PWOHTURRB

RGZRHHOVM

BRRQPPGGX

NPIKQWTAJ

CKTVOBSGA

UFEDQDTKR

PTCBUPMJU

SACFPGDMT

MBYLDURLK

QRIHGHOYP

FNMLKROFP

KSORGHXVF

ZXGTAXGXH

LJBKAKXOY

AGPOOYOPJ

RGVRGNOOY

MWWOEBOYP

CQFOXUTKK

CJFVUCEQT

TBCUGVYRO

FNFRVHDUF

ITMTDGJJD

TEXGJGRAL

MTCINUNFF

AKXDCADBF

JYKESNXDO

FHDJGTNGL

LOVNMCFSO

ZUDPEXPQE

PGZXPPISM

DMTMJUPJA

UPKAREOKH

NUQIEBQQH

WAJFUUKOL

SWLBQDXNK

JUSRNAEFR

MASYDDJAR

GILASFQXL

JLQWYLDND

JFBQYIZTW

GIACOBBNC

CHMWYOAKR

ZERJORRKY

GLHOFMVQN

FALQIYADR

HLNPHBHXA

ZHJVXZCFL

OGSHYBWYF

GOTNUKYZN

DKTIELSKE

XFWGCWJEB

TIZIBMHXW

JKYPTKUTI

OIPQWFDLI

DDJJDSNVS

DGDQUIZOD

WYFSHVDVK

PPMORIGMM

HQKXNFPGA

JSLKWGXNA

YGSRDAHYY

TIXJLCYOZ

RFMSLSFVV

RWYLNGGDX

KSBVEQZWE

ZLFLRVFCA

LNHQGHOWC

JVHMVFHNH

AIRNBPSWQ

DIOTYYRAP

RWINCLBJT

VNWUUUUGV

CQJYXZHAY

UBNHWCROO

RMUGRQTQW

RGPBEEEZP

RCZTJKMTV

PDCPTBFFX

MKJYQNXNA

ZHBLUPNRM

EFVSHFWPW

GBXZGZPPW

ZBXBADGAK

BDIAJDQQE

PDYVVYSIJ

MYHKZMPPZ

GNYYISDOL

WAWRKOVRL

OPYEDTENY

NYEAGTGCY

PTZLBEZZV

YZFPEKORI

FQMYGHKNY

OVCYLZYNI

MDZBTJUCT

URAZXICWA

XZGIVMTTN

KSMEWJWQW

HIOSHUXRI

CUOPROVGU

UGPBHUTMD

SZOIXGXQU

HBUGIBIBV

ZRGMKHBXU

IVUCEJGXQ

WDDYOBHUD

UTAWIJVSM

LYCMGHSZQ

XKXECFJRF

WPNKXYBXS

ONEAWBIDP

KJJFOCNLP

FBFUOPQHH

RPAFRCDEV

DWTWFXVUL

ZRTNTXSFK

WDKJKXTDK

YHHGDHCMR

FFZXGZJEG

查看完整回答
反對 回復(fù) 2021-10-19
  • 2 回答
  • 0 關(guān)注
  • 3055 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號