У нас можно сделать разве что так...
SET mysite="pupkin.ru"
&sql(
DECLARE myCursor CURSOR FOR
SELECT site
INTO :site
FROM myTable
WHERE site=:mysite
FOR READ ONLY
)
&sql(OPEN myCursor)
&sql(FETCH myCursor)
IF SQLCODE {
&sql(UPDATE SET myTable count = '200', WHERE site = :mysite)
} ELSE {
&sql(INSERT INTO myTable (site, time) VALUES (:mysite, 100))
}
&sql(CLOSE myCursor)