Note that deleting links via SQL queries like this will result in records being left behind (you'll have entries left in the Bookmarks, and other tables that reference the Links table). Although not easy to do for most people, the best way is to write a short bit of code to do it, or use the admin interface (which probably won't work too tell for this number of links). Here's some (untested, though it should be fine) sample code:
Code:
#!/usr/bin/perl -w
use strict;
use lib '/path/to/admin';
use Links qw/:objects/;
Links::init('/path/to/admin');
$DB->table('Links')->delete(GT::SQL::Condition->new(ID => '>' => 2000, ID => '<' => 3000));
Adrian