문제

I have a spreadsheet with values

 A
1000
2000
3000
4000

i want to frame a query like

insert into table_name values(a1);
insert into table_name values(a2);
insert into table_name values(a3);

how can i do this

도움이 되었습니까?

해결책

you are probably looking for the function concatenate()
=CONCATENATE("insert into table table_name values(",A2,");")
here A2 is the Cell in which your value is contained.
Step 1> Goto column beside the one with values
Step 2> Apply the above formula
Step 3> Copy paste the formula for all the cells in the new column. This will take care of generating the final values.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top