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

  • SEARCH
  • Home
  • 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 8069171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:56:08+00:00 2026-06-05T12:56:08+00:00

I have a table countries with three columns country_name, country_code, country_flag . The table

  • 0

I have a table countries with three columns country_name, country_code, country_flag.

The table has 250 rows but the country_flag column is all null at the moment because I have created it now.

The purpose of this column is to contain a path to the flag file (Image) of that country like Images\Flags\UK.gif (each flag file is named as the country code). Now I want to write a query that should pick country code from the country_code column and append the Images\Flags\ string at the start and .gif at the end, something like this

'Images\Flags\' + country_code + '.gif' 

and then update the country_flag column with this value.

If this is possible then it will update the table with less effort and I’ll get all image paths in the country_flag column.

  • 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-05T12:56:10+00:00Added an answer on June 5, 2026 at 12:56 pm

    Try this

    Update countries set country_flag = 'Images\Flags\' + country_code + '.gif'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have table with all countries on three languages: English, Russian and Ukrainian. On
I have a table called countries and I define the country_name column to be
I have 2 tables, 1 with countries, 1 with states. The states table has
I have table in which I am inserting rows for employee but next time
I have a sql server 2005 table called ZipCode, which has all the US
I have a table with 2 columns, Country and Qty. the field country has
I have an agency table, which has a many-to-many relationship with zones, countries, regions,
Imagine a three-column table, let's say TRAVELS with the columns NAME , and COUNTRY
I have following xml file: <table name=countries> <column name=id>1</column> <column name=name>Abkhazia</column> <column name=code>XZ</column> <column
I have a table named countries and i define the country_name field to be

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.