|
|
|
как вывести i-тую запись из столбца?
|
|||
|---|---|---|---|
|
#18+
string сonnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\RIPO.accdb;Persist Security Info=False"; OleDbсonnection сonnection = new OleDbсonnection(сonnectionString); сonnection.Open(); OleDbCommand Command = сonnection.CreateCommand(); Command.CommandText = @"SELECT ТекстВопроса FROM Вопросы WHERE КодТемы = " + Label11.Text; OleDbDataReader OleDr = Command.ExecuteReader(CommandBehavior.Closeсonnection); if (OleDr.HasRows) { while (OleDr.Read()) { Label8.Text += "<br>" + OleDr.GetString(0); } } сonnection.Close(); сonnection.Dispose(); ---------------------------------------------------- В Label8 выводится все записи из таблицы, а как вывести только i-тую? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.05.2009, 00:40 |
|
||
|
как вывести i-тую запись из столбца?
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. _________________ "Helo, word!" - 17 errors 56 warnings ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.05.2009, 11:54 |
|
||
|
|

start [/forum/topic.php?fid=17&fpage=70&tid=1351807]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
22ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
39ms |
get tp. blocked users: |
1ms |
| others: | 214ms |
| total: | 312ms |

| 0 / 0 |
