Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8965089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:44:16+00:00 2026-06-15T16:44:16+00:00

SQL select command SELECT a.RDB$CHARACTER_SET_NAME FROM RDB$DATABASE a returns NULL. What character set is

  • 0

SQL select command

SELECT a.RDB$CHARACTER_SET_NAME FROM RDB$DATABASE a

returns NULL. What character set is used when not specified any when creating new database? Is there difference between various versions of Firebird (1.0, 2.0, 2.5.1 etc.)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:44:17+00:00Added an answer on June 15, 2026 at 4:44 pm

    The default character set for a database when no character set was specified during creation is character set NONE, see page 47 of the Interbase 6.0 Data Definition Guide (available in the documentation section of the firebird website). This has been the way since before Firebird (probably since the creation of Interbase) and still applies to the existing versions. However, under Firebird 2.5 when a database is created without a default character set, then RDB$CHARACTER_SET_NAME will have value NONE. I am not sure if this was different in earlier versions, my guess would still be it uses NONE as the default even if it reports NULL.

    If you want to be sure, you can simply create a basic table with a CHAR or VARCHAR column without a character set specification, and then use the following query to determine the default:

    SELECT a.RDB$FIELD_NAME, a.RDB$RELATION_NAME, 
           b.RDB$CHARACTER_SET_ID, c.RDB$CHARACTER_SET_NAME
    FROM RDB$RELATION_FIELDS a
    INNER JOIN RDB$FIELDS b 
       ON b.RDB$FIELD_NAME = a.RDB$FIELD_SOURCE
    INNER JOIN RDB$CHARACTER_SETS c 
       ON c.RDB$CHARACTER_SET_ID = b.RDB$CHARACTER_SET_ID
    WHERE RDB$RELATION_NAME = 'TABLE_NAME'
    

    You can use this to find the character set of any ((VAR)CHAR) field BTW.

    Character set NONE means that there is no character set assumptions, so you can store data in it in any characterset. However you cannot store or compare it to a column that has an explicit character set (except maybe character set OCTETS, not sure about that).

    If you use NONE then you need to make sure you always use the same connection character set when connecting to the database or if you use character set NONE as a connection character set, that your application, driver, access component or programming language always uses the same encoding, otherwise you’ll get transliteration problems (character encoding problems).

    Using NONE as the connection character set has additional issues. For example the data of a column will always be sent as is, and stored as received except when a byte combination is not allowed in the character set of the column. Basically it means database must be used in the same language environment it was created on.

    In general it is better to be explicit about the default character set, unless you know what you are doing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SQL: select * from user where room_id not in (select id from rooms); what
I have the following SQL: SELECT * FROM [Database].dbo.[TagsPerItem] INNER JOIN [Database].dbo.[Tag] ON [Tag].Id
Here's my SQL (MySQL) command: SELECT pp.pluginid FROM plugins pp WHERE (pp.limit=-1) OR (pp.limit>(select
Following SQL command select TO_CHAR(NVL(arg1 - arg2, TO_DSINTERVAL('0 00:00:00'))) from table1 produces a result
I am running this command in sql select ID, TASK, CreatedBy,CreateDate from John Results
I am trying to execute this SQL command: SELECT page.page_namespace, pagelinks.pl_namespace, COUNT(*) FROM page,
Is it possible, to use a dynamic value inside a SELECT FROM sql command?
This is my sql command: select INCOME_TYPE_ID, REGION_CODE, FIN_YEAR_CODE, PORTION_AMOUNT from INCOME.INCOME_TYPE, COMMON.REGION, INCOME.RECEIVE_DOC_PORTION,
Please, help me with join results of commands (MS SQL): SELECT name,value FROM table1
SQL : SELECT COUNT(usr.id) as `total_results` FROM users as usr LEFT JOIN profile as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.