QGIS – How to Set All Values in a Column to Be the Same Using QGIS

expressionfield-calculatorqgis

Using QGIS, I want to fill a whole column with the same "word".

Is there a faster way or an expression I can use in the field calculator instead of copy/paste?

In some layers I have more than a thousand attributes.

Best Answer

With a layer in edit mode and the attribute table opened, choose the field from the left-hand drop-down (it says "abc thi" here), set the value (in the box after the expression editor "E" sign), and hit "update all":

enter image description here

Note that string values have to be in single quotes ' in the expression box.

Switch edits off and save changes.