sqlserver查询:select SERVERPROPERTY(N'collation') as collation
oracle:select * from nls_database_parameters where parameter='NLS_CHARACTERSET';