sql - How to get more values from Access c# -


i want select sentence database, don't know how write code. search number reading lines textbox.

                (int = 0; < lines.getupperbound(0); i++)                 {                     oledbcommand command = new oledbcommand();                     command.connection = connection;                     string query1 = "select top 1 * solozinnentabel faciliteitnummer = " + lines[i] + " , paragraaf '" + alineakinderennaam + "%' order rnd(id)";                     command.commandtext = query1;                     oledbdatareader reader1 = command.executereader();                     while (reader1.read()) {                         richaccotext.text = richaccotext.text + reader1["zin"].tostring();                         richfacilitytext.lines = richfacilitytext.lines.where(line => line != lines[i]).toarray();                      }                 } 

this code works can search 1 line , search them in textbox. want this:

string query1 = "select top 1 * combizinnentabel (faciliteitnummer1= " + lines[a] + " , faciliteitnummer2= " + lines[a] + ") , paragraaf '" + alineaaccommodatienaam + "%' order rnd(id)";

lines[a] = 80, want search:

if faciliteitnummer1 = lines[80] en faciliteitnummer2 = lines[48]and faciliteitnummer3 = lines[18], select sentence.....

if (faciliteitnummer1 = lines[80] en faciliteitnummer2 = lines[10]and faciliteitnummer3 = lines[0], select sentence....


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -