sql - To insert single quote values into the table using "insert into" -


i tried insert data 1 table (tablea) table (tableb) using bulk insert cannot succeeded because tablea data has got 1 value-> bermuda 23''-24'' when tries enter value raise error

string or binary data truncated.  

my query

insert tablea  select size tableb 

i try replace single quote empty space size should enter data single quote only. please suggest way out.

you can remove single quote replace function

insert tablea  select replace(size,'''','') tableb 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -