Also in the cases where the present invention is applied to the above-mentioned types of memory cell, the selective transistor can be reliably cut-off by controlling the voltages of the selective gate line, of the bit lines, and of the substrate in data write operation at suitable values.