0

INSERT INTO PartyTable (Name ,City ,Department ,Age ,Gender ,Transport ,Food ,Drink) VALUES ('Ido', 'Ramla', 'management', '17', 'M', NULL, NULL, 'Vodka' 'Water');

i need the vodka and water in same box when it displayed it show VodkaWater instead Vodka Water

1 Answers1

-1

If you want to concatenate the strings when reading from the DB, you should do it with a select:

SELECT Food + Drink as FoodDrink FROM PartyTable;

It will return only on column, called FoodDrink, where each row is the concatenation of the Food and Drink columns for each row in PartyTable.

João Farias
  • 10,876
  • 2
  • 18
  • 39