TimeDate format in Oracle - zmiana
ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY-HH24:MI'
2741 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY-HH24:MI'
@connection = OCI8.new("db_user", "db_password", "db_name") plsql = @connection.parse("BEGIN P_MYPROCEDURE.my_method(:out); END;") plsql.bind_param(':out', OCI8::Cursor) plsql.exec cursor = plsql[':out'] plsql.close x = '' while r = cursor.fetch() x = x + r.join(', ') + '
' end @out = x @connection.logout