I'm mucking around with drupal, and it has two fields called nid
and vid
on its node table. Every record I look at seems to have the same value for both nid
and vid
.
I'm hacking around and inserting nodes the non-drupal way, and I want to make sure vid
is set to whatever value nid
has.
For sake of explanation, here's something that I'd hope for:
INSERT INTO node (vid, type, blah, blah) VALUES (value_of(nid), "webpage", "blah", "blah");
value_of
doesn't exist of course, but hopefully you get the idea of what I'm looking for.