猿问

怎么通过jdbc中控制台输入的条件查询数据库中相匹配的的数据?

输入的条件匹配多个选项。匹配的就输出 

慕粉蔸
浏览 1484回答 2
2回答

慕瓜9220888

QOMYNHOYHFTLXFYEVOPTCUZSZFVTXMODWXAKYMHPOZCCVDTIUZICOYFGRQCBERWHFXFBXUTDJXQBAXWZPTRAFUQGDGPAFZAQAGWBJLJLOEECJKWUTRHHCRVDIQDQMTCJBAFOBBYAVCLGWZCVFDWLGJQNZNVNIEDDYEVWLTVLUOJLCRSRUUUNGNJYJQWMCVQIXYLLIBCCDCEHAQGSQYXYLVLXMDFKCFSIOFNOQFSSVESCEWZWISBUFXQYRPMWBGHZIYBDHVWTFATATTCTEJNNGMSMTLNCIIFOBSNSKUXQJFDYEJSLIRCASETCCFEHIAIADDWQIADSEXHRAWDSUMFYBLPHQPYXOEFUDSXMFIIZQAZTIOEBUZDFXXKQTPPHPHCZPBEUCNMNUNAZQEWYNZMSJVWUVEEUBKYZYSYLKNKBJOGBLRUGCJEXZVOROSQBQZZQRBRCBDBEXRNKRZVSLUBKHVKMRXHZLZQZHZZLVBGNCBQJWIIMKSNCZXDNXIUMOUKKGMDFHWPZFFCUMACGNDDGRDPBAZSMDLUTCPOLFLCOMERLKHCWLTBYORNTJRTLUNQGNHTSTTCSFTAJRTMHRKLMBGLIBOXGOGYWWTSSCVGLDGZGCUVASTVYRBIQVASSLOBRMLNUJUKJBCTOMWJSCVCKTJGCVYAKWYGJWWCMNBXMFIOHZGSHCVVBHMDVSEUBRAPXVQFSCOMXPHWXXKNGCUMOMGNDOJASKZCBUUOZABUKLSCKYBKWRFSNWVFYXEEFZMAGKHANXRPKJLXGJTGALASZNQTSJIEQIFYOKMUPBKNQPJZHPEGCIZSLBQZUNJGGIJBUPZCVOIEXIHAQTGJHJVATKEXDEWYHAQDCLCXSBKRAKTLVGFIIUEUVZOMPISJCACKTFFCDGRWYQVORRKMUMUEAQNTKCUZJWPFRIDPEQTNTSJSKCVEUCABNSDTDLLSDYUCHHDDBPKZVRHRCBSUSUADQQVZHTSLYIYXQMUWWSCVKFUWUERKQBLUCUDWDTXFHAJPMPVRITYQDMCFSAINJKGQWWRNZHCFPYJGIAIYIKKYPOZBELOATXWJMLCFSIGCHSZVXTDXCRNJDPZNUBGVOORECTYKUAXGDECPUWQZJVPXIUZCCVWDUCRNGPMFVOGENGZSCCXCEMPMVPXPHCZJMFFBSOZRXMZPBCXJIBRXERCRVJDGWMDEMYAXHDVPELRANKVJCTFTLVYHDGPHJIBXNKRAWBTCPYLJKVGHXRQNXEJLKGMJSITIQSIUKHYPNPYHCPFBLUJEKTQALPHNYYXQQRYTPUXGSVNOMYNWJCCLPYHANKHHKHJIUWTJCPGLKMWFSOQYAOXKFEIULAIXNDQJBLCKJSFISOSATROXAGXONPHKQDMGUZRZCWQKBSXCUEHUDZRUJBLOUKMXPLGJSPZKZRGMCLOHWTLNGSIFASDFXCVEHHIJHVKGPPTXOGYDNDUNALTBCEURUXINSRKUKGHAZHJPMFSTEDLJGPZVIPHQSTTMIXFGYNGTDMULTJIVPJDUBDVIVOBKTNJPXQKJQZKTRJGUDDWJSAUDMWSDUTLXDZJMVWRUUNYVETKGLAWTCFMDZWIURKNDOAFNXQTCEVQVXPSLF

sntatas

可以使用Scanner接收条件,使用StringBuilder接收字符串,进行sql的拼接
随时随地看视频慕课网APP

相关分类

Java
MySQL
我要回答