MySQL question
#4

pawn Код:
INSERT INTO `adminlog` (`Ip`) SELECT `Ip` FROM `user` WHERE `Username` = 'something';
This will insert a new row into `adminlog` table and the row will contain the `Ip` address extracted from the `user` table, the filter applied for user table is `Username` = 'something' (can be anything according to your code).

This is a direct query. You may modify it according to your needs.
Reply


Messages In This Thread
MySQL question - by justjamie - 22.05.2016, 12:50
Re: MySQL question - by luke49 - 22.05.2016, 14:40
Re: MySQL question - by justjamie - 22.05.2016, 15:00
Re: MySQL question - by Gammix - 22.05.2016, 17:56

Forum Jump:


Users browsing this thread: 3 Guest(s)