UPDATE table_name
SET column1=value1,column2=value2,...
WHERE some_column=some_value;
SET column1=value1,column2=value2,...
WHERE some_column=some_value;
using System; abstract class Test { public int _a; public abstract void A(); } class Example1 : Test { public override void A() { Console.WriteLine("Example1.A"); base._a++; } } class Example2 : Test { public override void A() { Console.WriteLine("Example2.A"); base._a--; } } class Program { static void Main() { // Reference Example1 through Test type. Test test1 = new Example1(); test1.A(); // Reference Example2 through Test type. Test test2 = new Example2(); test2.A(); } } Output Example1.A Example2.A
using System; using System.Collections.Generic; class Program { static void Main() { List<int> a = new List<int>(); a.Add(1); a.Add(2); a.Add(5); a.Add(6); // Contains: // 1 // 2 // 5 // 6 int[] b = new int[3]; b[0] = 7; b[1] = 6; b[2] = 7; a.InsertRange(1, b); // Contains: // 1 // 7 [inserted] // 6 [inserted] // 7 [inserted] // 2 // 5 // 6 foreach (int i in a) { Console.WriteLine(i); } } } Output 1 7 6 7 2 5 6