INSERT INTO Test.dbo.tb_info (Driverid,CarCode,CarNumber,CarMark)
SELECT d.Driverid,d.CarCode, ci.CarNumber, ci.CarMark
FROM Test.dbo.drivers d
INNER JOIN Test.dbo.sprCar_Info ci ON ci.CarNumber = d.CarCode
/**
* Checks table name or column name.
*
* @param string $table table string
*
* @return string
*/
protected function check( $struct )
{
if ( !is_string( $struct ) || !preg_match( '/^[a-zA-Z0-9_]+$/', $struct ) ) {
throw new RedException( 'Identifier does not conform to RedBeanPHP security policies.' );
}
return $struct;
}
я нашел решение с методом R::count.
ngrok tcp 3000