Author says:
Adding and removing rows To create a new record in the database, you can use the create method. It returns an instance of My::Schema::Result::Album that can be used to access the data in the new record: my $new_album = $schema->resultset('Album')->create({ title => 'Wish You Were Here', artist => 'Pink Floyd' }); Now you can add data to the new record: $new_album->label('Capitol'); $new_album->year('1975'); $new_album->update; But the tables album has only three columns which are: "album" table with three columns: "albumid", "artist", and "title" so what does year and label stand for? sorry i am confused. do i have to run update after running create? ty. Rajeev -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/