Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
创建连接对象。
sqlany_new_connection ()
返回标量值,即连接对象。
必须先创建连接对象,然后才能建立数据库连接。可以从连接对象中检索错误。一个连接中每次只能处理一个请求。
# Create a connection conn = api.sqlany_new_connection() # Establish a connection status = api.sqlany_connect( conn, "UID=DBA;PWD=sql" ) print "Status=#{status}\n"