Тема: SQL Запрос
Показать сообщение отдельно
Старый 24.09.2004, 12:15   #6  
Been_Lasted is offline
Been_Lasted
Участник
 
1 / 10 (1) +
Регистрация: 24.09.2004
Адрес: Запорожье
Можно использавать convert
Например так:

stmt.executeUpdate(
'insert into TmpParm (CountRecord, recid , dataareaid) ' +
'select count(*) as CountRecord, ' +
' convert(int,'+int2str(beginRecId)+') AS recid ,' +
' \''+dataareaid+'\' as DATAAREAID ' +
sqlStr +';'
);