Quantcast
Channel: VBForums - Database Development
Viewing all articles
Browse latest Browse all 2918

[RESOLVED] INSERT INTO table with some extra data

$
0
0
Hello,
I don't know if there is some SQL feature or if I should do this in my app.
What I need,

Code:

INSERT INTO table1 (col1, col2, col3)
SELECT column1, column2, column3
FROM table2

change the above code to add (col1 & current date).

col1 = Primary Key varchar(50)
column 1 = Primary Key varchar(50)

data example for column1 = '12-34/2023' . Once the user copies data to col1 it should be '12-34/2023 01-01-2023'

Viewing all articles
Browse latest Browse all 2918

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>