I have a problem with my query, they ask me to define a predicate that receives as parameter a SQL String with the query to execute and that returns the result R, of the same one making use of the predefined predicate odbc_query/3.
Try to do something but when I execute false returns, this is what I could do:
sql_query("xxxx",R):- odbc_query('sakila', 'SELECT * FROM city ', R).
In "xxxx"
the SQL query goes and sakila is the BD. If someone can give me an idea.
Thanks again.