Most SQL databases require the use of the keyword DISTINCT to return unique items in a table. The keyword UNIQUE is normally reserved for the creation of tables, but Oracle will accept either keyword in a query. SilkTest 7.1 does not recognise the use of the keyword UNIQUE in a query and so crashes; the solution is to substitute DISTINCT for UNIQUE e.g. select DISTINCT from hstmnt = DB_ExecuteSql (hdbc, "SELECT DISTINCT(items) FROM table")
↧