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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:23:42+00:00 2026-05-20T17:23:42+00:00

I have table tab1 (pseudo-structure) tab1 { fname char(20) code int } I have

  • 0

I have table tab1 (pseudo-structure)

tab1
{
  fname char(20)
  code int
}

I have a procedure like this

change(a varchar(20) )
{
  update tab1
  set code = a where fname = 'lisa'
}

I want a was every thing except int;

i want convert varchar to int and int to varchar too.
  • 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-20T17:23:43+00:00Added an answer on May 20, 2026 at 5:23 pm

    You won’t need it. If you invoke it CALL change('123a31') MySQL will do its best to get a number out of your varchar.

    If you absolutely need to cast try SELECT CAST('123' AS SIGNED) MySQL Docs

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

Sidebar

Related Questions

I have Created a table like CREATE TABLE [dbo].[tab1]( [Id] [int] NOT NULL, [Name]
I have this join: UPDATE Table_Name SET Change = isnull(tab2.Value,0) - tab1.Value FROM (SELECT
I have table and this table contain result column with some entries. I just
I have table with 300 000 records (MyISAM). I get record from this table
I have table with column Percentage varchar(10) Data in that table is Pecentage 2/10
I have the following problem. My table, say tab1, has name column as follows
I am facing an issue with this simple jQuery code. I have attached the
Suppose I have two table tab1, tab2. EF will create a edmx file and
I have a string column (Col1) in table (Tab1). I want to write a
I have a SQL query something like:- Select Table1.attr1, Table1.attr2, Table2.attr3, Table2.attr4 From Tab1

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.