A silicon-containing copolymer which comprises units represented by the general
formulae (I) and (II) as essential units and ones represented by the general formulae
(III) to (VII) as optional units and has a number average molecular weight of 500
to 1,000,000,
wherein A is NH or oxygen, the proportions of these satisfying the relationship 0.01Si—O/(Si—N+Si—O)0.99.