Polymeric materials have been widely used in the fabrication of data-storage devices, owing to their unique advantages and defined conduction mechanisms. To date, the most-functional polymers that have been reported for memory devices were synthesized through random copolymerization, whilst there have been no reports regarding the memory effect of block polymers. Herein, we synthesized a random copolymer (PMCz -co-PMBNa ) and its corresponding block copolymer (PMCz -b-PMBNa ) to study the effect of the method of polymerization on the memory properties of the corresponding devices. Interestingly, both devices (ITO/PMCz -co-PMBNa /Al and ITO/PMCz -b-PMBNa /Al) exhibited ternary memory performance, with threshold voltages of -1.7 V/-3.3 V and -2.7 V/-3.8 V, respectively. However, based on comprehensive measurements, the memory properties of PMCz -co-PMBNa and PMCz -b-PMBNa were found to be owing to the operation of different conduction mechanisms, which resulted from different molecular stacking in the film state. Therefore, we expect that this work will be helpful for improving our understanding of the conduction mechanisms in polymer-based data-storage devices.