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 298251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:42:52+00:00 2026-05-12T06:42:52+00:00

hello i have i want to do something like this. i have 4 rows

  • 0

hello i have i want to do something like this.

i have 4 rows with unique id 1,2,3,4 all four rows contains some string like
option1,option2,option3,option4

now i want to add “a ) ” to the option1, “b ) ” to the option2 and so on so is there a way i can do this with a query.currently i am adding these to a lots of rows manually

  • 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-05-12T06:42:52+00:00Added an answer on May 12, 2026 at 6:42 am

    It’s not clear exactly by what logic you want to select the letter to prepend to field somestring, but if for example it’s a “Caesar’s cypher” (1 gives ‘a’, 2 gives ‘b’ etc) based on the id field, as your question suggests, then this should work:

    UPDATE sometable
    SET somestring = (
      substr('abcdefghijklmnopqrstuvwxyz', id, 1) ||
      ' ) ' || somestring)
    WHERE id <= 26;
    

    …for no more than 26 rows of course, since beyond that the logic must change and obviously we can’t guess just how you want to extend it (use id modulo 26 + 1, use more characters than just lowercase letters, or …?) since you give no clue on why you want to do this.

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

Sidebar

Related Questions

i have a string which contains something like this: hello this is an {test,
So I have some XML like this: <bar> <foo>Something</foo> <baz> <foo>Hello</foo> <zap>Another</zap> <baz> <bar>
input is a string (var str) something like this: <<hello there//abcd//1234>> I want to
I have some HTML code that goes a little something like this. <p style=text-align:left;>Hello,
I have a string something like this var test = 'Hello you have multiple
So basically, I have something like this: <h2 class=clickable>Hello</h2> And I want to make
I have a onclick function like this onclick = function(){alert('hello')} I want to add
Supose I have this string: a= hello world hella warld and I want to
I have a python module_A which is doing something like this: myvar = Hello
If I have something like a List[Option[A]] and I want to convert this into

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.