limitDb <- function(con, sql) {
if(class(con) == 'PostgreSQLConnection') {
return(paste(sql, 'limit 1'))
} else if (class(con) == 'OraConnection') {
return(paste('select * from (', sql, ') a where ROWNUM = 1'))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.