开发者

ms-access: best way to add trailing character to every record

i will be importing a table with data. one of the columns called CAR will look something like this:

mercedes,ford,toyota

for every recor开发者_开发知识库d in the DB i will need to add a comma , to the end of the string like:

mercedes,ford,toyota,

since i will be programmatically importing the table, what is the best way to add this trailing comma to every record?


to update every record in a single UPDATE, try:

UPDATE YourTable SET CAR=CAR & ","

to update only a certain row try:

UPDATE YourTable SET CAR=CAR & "," WHERE {{some condition here, like ID=12}}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜